|
Oracle Fusion Middleware Java API Reference for Oracle Access Management Mobile and Social | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.security.idaas.rest.jaxrs.client.sdk.authentication.AuthenticationClient
public class AuthenticationClient
This is the primary class used for clients to access the authentication REST services. Used to make requests and get responses over HTTP interactions with authentication token service.
| Constructor Summary | |
|---|---|
AuthenticationClient(ClientSDKConfig config)Constructor for the Authentication Client Helper. |
|
| Method Summary | |
|---|---|
static Headers |
buildHeaders(java.lang.String appId, java.lang.String CRH)Used to build the http Headers map data only one entry in the map data which is in form such as 'X-IDAAS-REST-AUTHORIZATION: UIDPASSWORD cred="... |
static Headers |
buildHeaders(java.lang.String appId, java.lang.String CRH, java.lang.String agentAppId, java.lang.String agentCRH)Used to build the http Headers map data Tow entries in the map data which are n form such as 'X-IDAAS-REST-AUTHORIZATION: UIDPASSWORD cred="... |
AuthenticationResult |
createToken(TokenCreateRequest tokenData, Headers headers)Authenticating and creating a new token based on a username and password. |
java.lang.String |
createToken(TokenCreateRequest tokenData, java.util.Map<java.lang.String,java.lang.Object> handles, java.util.Map<java.lang.String,java.lang.Object> deviceProfile, Headers headers)Authenticating and creating a new token based on a username and password, plus a handle and a deviceProfile. |
java.lang.String |
createToken(TokenCreateRequest tokenData, java.util.Map<java.lang.String,java.lang.Object> handles, java.util.Map<java.lang.String,java.lang.Object> deviceProfile, java.util.Map<java.lang.String,java.lang.Object> challengeAnswer, Headers headers)Authenticating and creating a new token based on a username and password, plus a handle and a deviceProfile. |
AuthenticationResult |
createToken(TokenExchangeRequest tokenData, Headers headers)Authenticating and creating a new token based on an existing token. |
java.lang.String |
createToken(TokenExchangeRequest tokenData, java.util.Map<java.lang.String,java.lang.Object> handles, java.util.Map<java.lang.String,java.lang.Object> deviceProfile, Headers headers)Authenticating and creating a new token based on an existing token, plus a handle and a deviceProfile. |
java.lang.String |
createToken(TokenExchangeRequest tokenData, java.util.Map<java.lang.String,java.lang.Object> handles, java.util.Map<java.lang.String,java.lang.Object> deviceProfile, java.util.Map<java.lang.String,java.lang.Object> challengeAnswer, Headers headers)Authenticating and creating a new token based on an existing token, plus a handle and a deviceProfile. |
org.codehaus.jettison.json.JSONArray |
createTokens(TokenCreateRequest tokenData, java.util.List<java.lang.String> tokenToBeCreated, Headers headers)Authenticating and creating multiple tokens based on a username and password. |
boolean |
deleteToken(TokenDeleteRequest tokenToDelete, Headers headers)Used to delete an existing token for logging out. |
AuthenticationResult |
readToken(TokenReadRequest tokenToRead, Headers headers)Used to read or verify an existing token. |
java.lang.String |
registerApplication(TokenCreateRequest tokenData, java.util.Map<java.lang.String,java.lang.Object> handles, java.util.Map<java.lang.String,java.lang.Object> deviceProfile, java.util.Map<java.lang.String,java.lang.Object> challengeAnswer, java.lang.String clientId, Headers headers)Registering application for obtaining Client Registration Handle based on a username and password or challenge/answer, plus a handle and a deviceProfile. |
java.lang.String |
registerApplication(TokenCreateRequest tokenData, java.util.Map<java.lang.String,java.lang.Object> handles, java.util.Map<java.lang.String,java.lang.Object> deviceProfile, java.lang.String clientId, Headers headers)Registering application for obtaining Client Registration Handle based on a username and password, plus a handle and a deviceProfile. |
java.lang.String |
registerApplication(TokenExchangeRequest tokenData, java.util.Map<java.lang.String,java.lang.Object> handles, java.util.Map<java.lang.String,java.lang.Object> deviceProfile, java.lang.String clientId, Headers headers)Registering application for obtaining Client Registration Handle given User Token through agent application, plus a handle and a deviceProfile. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationClient(ClientSDKConfig config)
throws OICClientException
config - is the ClientSDKConfig instance holding the configuration information the cleintsdk needs to interact with the authentication REST HTTP services. For example, it would contain the uri of the deployed authentication services intended to be accessed.OICClientException| Method Detail |
|---|
public java.lang.String registerApplication(TokenCreateRequest tokenData,
java.util.Map<java.lang.String,java.lang.Object> handles,
java.util.Map<java.lang.String,java.lang.Object> deviceProfile,
java.lang.String clientId,
Headers headers)
throws OICClientException
tokenData - is the data set of attributes etc to create the token. The data is usercredentials in TokenCreateRequest.handles - hold the handle data.deviceProfile - hold the device information.clientId - application or agent application profile id.headers - is data containing Client Registration Handle obtained from application registration.OICClientException
public java.lang.String registerApplication(TokenCreateRequest tokenData,
java.util.Map<java.lang.String,java.lang.Object> handles,
java.util.Map<java.lang.String,java.lang.Object> deviceProfile,
java.util.Map<java.lang.String,java.lang.Object> challengeAnswer,
java.lang.String clientId,
Headers headers)
throws OICClientException
tokenData - is the data set of attributes etc to create the token. The data is usercredentials in TokenCreateRequest.handles - hold the handle data.deviceProfile - hold the device information.challengeAnswer - hold the challenge answer for strong authentication.clientId - application or agent application profile id.headers - is data containing Client Registration Handle obtained from application registration.OICClientException
public java.lang.String registerApplication(TokenExchangeRequest tokenData,
java.util.Map<java.lang.String,java.lang.Object> handles,
java.util.Map<java.lang.String,java.lang.Object> deviceProfile,
java.lang.String clientId,
Headers headers)
throws OICClientException
tokenData - is the data set of attributes etc to create the CRH. The data is user token through agent application.handles - holds the handle data.deviceProfile - hold the device information.clientId - application or agent application profile id.headers - is data containing Client Registration Handle obtained from application registration.OICClientException
public AuthenticationResult createToken(TokenCreateRequest tokenData,
Headers headers)
throws OICClientException
headers - contains the headerstokenData - is the data set of attributes etc to create the token. The data is usercredentials in TokenCreateRequest.OICClientException
public org.codehaus.jettison.json.JSONArray createTokens(TokenCreateRequest tokenData,
java.util.List<java.lang.String> tokenToBeCreated,
Headers headers)
throws OICClientException
headers - contains the headerstokenData - is the data set of attributes etc to create the token. The data is usercredentials in TokenCreateRequest.tokenToBeCreated - is data containing the token types to be createdOICClientException
public java.lang.String createToken(TokenCreateRequest tokenData,
java.util.Map<java.lang.String,java.lang.Object> handles,
java.util.Map<java.lang.String,java.lang.Object> deviceProfile,
Headers headers)
throws OICClientException
tokenData - is the data set of attributes etc to create the token. The data is usercredentials in TokenCreateRequest.handles - holds the handle data.deviceProfile - hold the device information.headers - is data containing Client Registration Handle obtained from application registration.OICClientException
public java.lang.String createToken(TokenCreateRequest tokenData,
java.util.Map<java.lang.String,java.lang.Object> handles,
java.util.Map<java.lang.String,java.lang.Object> deviceProfile,
java.util.Map<java.lang.String,java.lang.Object> challengeAnswer,
Headers headers)
throws OICClientException
tokenData - is the data set of attributes etc to create the token. The data is usercredentials in TokenCreateRequest.handles - holds the handle data.deviceProfile - hold the device information.challengeAnswer - hold the challenge answer for strong authenticationheaders - is data containing Client Registration Handle obtained from application registration.OICClientException
public AuthenticationResult createToken(TokenExchangeRequest tokenData,
Headers headers)
throws OICClientException
headers - contains the headerstokenData - is the data set of attributes etc to create the token. The data includes a token as part of credentials which is in TokenExchangeRequest.OICClientException
public java.lang.String createToken(TokenExchangeRequest tokenData,
java.util.Map<java.lang.String,java.lang.Object> handles,
java.util.Map<java.lang.String,java.lang.Object> deviceProfile,
Headers headers)
throws OICClientException
tokenData - is the data set of attributes etc to create the token. The data is usercredentials in TokenExchangeRequest.handles - holds the handle data.deviceProfile - hold the device information.headers - is data containing Client Registration Handle obtained from application registration.OICClientException
public java.lang.String createToken(TokenExchangeRequest tokenData,
java.util.Map<java.lang.String,java.lang.Object> handles,
java.util.Map<java.lang.String,java.lang.Object> deviceProfile,
java.util.Map<java.lang.String,java.lang.Object> challengeAnswer,
Headers headers)
throws OICClientException
tokenData - is the data set of attributes etc to create the token. The data is usercredentials in TokenExchangeRequest.handles - holds the handle data.deviceProfile - hold the device information.challengeAnswer - hold the challenge answer for strong authenticationheaders - is data containing Client Registration Handle obtained from application registration.OICClientException
public AuthenticationResult readToken(TokenReadRequest tokenToRead,
Headers headers)
throws OICClientException
headers - contains the headerstokenToRead - contains data for a read requestOICClientException
public boolean deleteToken(TokenDeleteRequest tokenToDelete,
Headers headers)
throws OICClientException
tokenToDelete - is set of attributes for the token that will be deleted.headers - contains the headersOICClientException
public static Headers buildHeaders(java.lang.String appId,
java.lang.String CRH)
throws OICClientException
appId - is Application Profile ID.CRH - is Client Registration Handle which is obtained through Registration Application step.OICClientException
public static Headers buildHeaders(java.lang.String appId,
java.lang.String CRH,
java.lang.String agentAppId,
java.lang.String agentCRH)
throws OICClientException
appId - is Application Profile ID for key X-IDAAS-REST-AUTHORIZATION.CRH - is Applciation's Client Registration Handle which is obtained through Registration Application step for key X-IDAAS-REST-AUTHORIZATION.agentAppId - is Agent Application Profile ID for key X-IDAAS-REST-AGENT-AUTHORIZATION.agentCRH - is Agent Application's Client Registration Handle which is obtained through Registration Application step. It is for key X-IDAAS-REST-AGENT-AUTHORIZATION.OICClientException
|
Copyright (c) 2012, Oracle All Rights Reserved. Built 06/05/2012 17:18:07 PDT |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||