Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Access Management Mobile and Social


oracle.security.idaas.rest.jaxrs.client.sdk.authorization
Class AuthorizationClient

java.lang.Object
  extended by oracle.security.idaas.rest.jaxrs.client.sdk.authorization.AuthorizationClient


public class AuthorizationClient
extends java.lang.Object

This is the primary class used for clients to access the authorization REST services.


Constructor Summary
AuthorizationClient(ClientSDKConfig config)
          Constructor for the authz service for the provider at the specified URI

 

Method Summary
 AuthorizationDecision getAuthzDecision(java.util.Map<java.lang.String,java.lang.String> queryParams, Headers headers)
          Gets an authz decision for a subject, action, resource and pass in the subject data in query parameters.
 AuthorizationDecision getAuthzDecisionUsingHeaders(java.util.Map<java.lang.String,java.lang.String> queryParams, Headers headers)
          Deprecated. 

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

AuthorizationClient

public AuthorizationClient(ClientSDKConfig config)
                    throws OICClientException
Constructor for the authz service for the provider at the specified URI
Parameters:
config - includes configuration information such as the serviceURI which is the uri of the service. For example, a uri such as "http://localhost:18001/oic_rest/rest/authorizationservice1/authorization".
Throws:
OICClientException

Method Detail

getAuthzDecisionUsingHeaders

@Deprecated
public AuthorizationDecision getAuthzDecisionUsingHeaders(java.util.Map<java.lang.String,java.lang.String> queryParams,
                                                                     Headers headers)
                                                   throws OICClientException
Deprecated. 
This method had been deprecated and will be removed soon. Gets an authz decision for a subject, action, resource. The subject data should be sent in the header X-Idaas-Rest-Subject.
Parameters:
headers - must contain subject data in header "X-Idaas-Rest-Subject".
queryParams - any other query params
Returns:
the authz decision results.
Throws:
OICClientException

getAuthzDecision

public AuthorizationDecision getAuthzDecision(java.util.Map<java.lang.String,java.lang.String> queryParams,
                                              Headers headers)
                                       throws OICClientException
Gets an authz decision for a subject, action, resource and pass in the subject data in query parameters.
Parameters:
queryParams - contains subject, action, resource, and any other query params
headers - contains headers
Returns:
the authz decision of whether access is allowed or not.
Throws:
OICClientException

Skip navigation links

Copyright (c) 2012,
Oracle All Rights Reserved.
Built 06/05/2012 17:18:07 PDT