Skip navigation links
oracle.security.idaas.rest.jaxrs.client.sdk.authorization
Class AuthorizationClient
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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