|
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 | |||||||||
public interface TokenService
TokenService in an interface for an Authenticat Service to implement. It carries out the logic to authenticate a Client Identity, User Identity and create various of tokens as a result of authentication. It also has the function to verify or invalidate an existing token.
| Method Summary | |
|---|---|
Token |
createAccessToken(SecurityContext securityCtx, SubjectID token, java.util.Map<java.lang.String,java.lang.Object> reqParams)The createAccessToken will create Access Token with User token and/or Client Identity together with provider specific parameters (such as resource context). |
Token |
createToken(SecurityContext securityCtx, SubjectID subject, java.lang.String tokenType, java.util.Map<java.lang.String,java.lang.Object> reqParams)The createToken will authenticate credential. |
java.util.List<Token> |
createTokens(SecurityContext securityCtx, SubjectID subject, java.util.List<java.lang.String> tokenTypes, java.util.Map<java.lang.String,java.lang.Object> reqParams)The createTokens will authenticate credential. |
java.util.List<Token> |
getAllTokens(SecurityContext securityCtx, SubjectID subjectid)The getAllTokens return all the tokens belong to the system. |
Token |
getToken(SecurityContext securityCtx, SubjectID subjectid)The getToken validates the specified Token and returns up-to-dated token. |
java.util.List<Token> |
getTokens(SecurityContext securityCtx, SubjectID subjectid)The getTokens return all the tokens belong to the owner of SubjectID. |
boolean |
terminateToken(SecurityContext securityCtx, SubjectID subject)Invalidates a Token. |
boolean |
terminateTokens(SecurityContext securityCtx, SubjectID subjectid)The terminateTokens invalidates all the tokens belong to the owner of SubjectID. |
void |
updateSessionAttributes(SecurityContext securityCtx, SubjectID subject, java.util.Map<java.lang.String,java.lang.Object> tokenAttributes)Updates Token attributes. |
| Method Detail |
|---|
Token createToken(SecurityContext securityCtx,
SubjectID subject,
java.lang.String tokenType,
java.util.Map<java.lang.String,java.lang.Object> reqParams)
throws RESTNotFoundException,
RESTForbiddenException,
RESTUnauthorizedException,
RESTMethodNotAllowedException,
RESTBadRequestException
For access token creation, please see createAccessToken method.
securityCtx - defines the calling user identity (i.e. caller) who submit this request together with cient application identity that can authorize and validate this request.subject - defines the user and credential to be authenticated.tokenType - defines the TokenType the user is expecting.reqParams - defines the provider specific parameters for token creation.RESTMethodNotAllowedException -RESTUnauthorizedException -RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTUnauthorizedExceptionRESTMethodNotAllowedExceptionRESTBadRequestException
java.util.List<Token> createTokens(SecurityContext securityCtx,
SubjectID subject,
java.util.List<java.lang.String> tokenTypes,
java.util.Map<java.lang.String,java.lang.Object> reqParams)
throws RESTNotFoundException,
RESTForbiddenException,
RESTUnauthorizedException,
RESTMethodNotAllowedException,
RESTBadRequestException
An example of multiple token type creation is:
["USERTOKEN", "USERTOKEN:OAMMT"]
That request two user tokens to be created. One is of "vanilla" user token, the other is of special "OAM Master Token" variant of user token.
securityCtx - defines the calling user identity (i.e. caller) who submit this request together with cient application identity that can authorize and validate this request.subject - defines the user and credential to be authenticated.tokenType - defines the TokenType the user is expecting.reqParams - defines the provider specific parameters for token creation.RESTMethodNotAllowedException -RESTUnauthorizedException -RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTUnauthorizedExceptionRESTMethodNotAllowedExceptionRESTBadRequestException
Token createAccessToken(SecurityContext securityCtx,
SubjectID token,
java.util.Map<java.lang.String,java.lang.Object> reqParams)
throws RESTNotFoundException,
RESTForbiddenException,
RESTUnauthorizedException,
RESTMethodNotAllowedException,
RESTBadRequestException
securityCtx - defines the calling user identity (i.e. caller) who submit this request together with cient application identity that can authorize and validate this request.token - Subject ID that defines the (lightweight) user token.reqParams - defines the provider specific parameters for token creation.RESTMethodNotAllowedException -RESTUnauthorizedException -RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTUnauthorizedExceptionRESTMethodNotAllowedExceptionRESTBadRequestException
void updateSessionAttributes(SecurityContext securityCtx,
SubjectID subject,
java.util.Map<java.lang.String,java.lang.Object> tokenAttributes)
throws RESTNotFoundException,
RESTForbiddenException,
RESTBadRequestException,
RESTUnauthorizedException,
RESTMethodNotAllowedException
Token attributes.securityCtx - defines the calling user identity (i.e. caller) who submit this request together with client application identity that can authorize and validate this request.subject - defines the token for which the associated session has to updated.tokenAttributes - defines attributes to be updated in session associated with the token.RESTMethodNotAllowedException -RESTUnauthorizedException -RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTBadRequestExceptionRESTUnauthorizedExceptionRESTMethodNotAllowedException
boolean terminateToken(SecurityContext securityCtx,
SubjectID subject)
throws RESTNotFoundException,
RESTForbiddenException,
RESTBadRequestException,
RESTUnauthorizedException,
RESTMethodNotAllowedException
Token.securityCtx - defines the calling user identity (i.e. caller) who submit this request together with cient application identity that can authorize and validate this request.subject - defines the token is being invalidated.boolean if operation is done successfully.RESTMethodNotAllowedException -RESTUnauthorizedException -RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTBadRequestExceptionRESTUnauthorizedExceptionRESTMethodNotAllowedException
boolean terminateTokens(SecurityContext securityCtx,
SubjectID subjectid)
throws RESTNotFoundException,
RESTForbiddenException,
RESTUnauthorizedException,
RESTBadRequestException,
RESTMethodNotAllowedException
SubjectID.securityCtx - defines the calling user identity (i.e. caller) who submit this request together with cient application identity that can authorize and validate this request.subjectid - defines the SubjectID of the user whom the token is being retrieved.RESTMethodNotAllowedException -RESTUnauthorizedException -RESTBadRequestException -RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTUnauthorizedExceptionRESTBadRequestExceptionRESTMethodNotAllowedException
Token getToken(SecurityContext securityCtx,
SubjectID subjectid)
throws RESTNotFoundException,
RESTForbiddenException,
RESTUnauthorizedException,
RESTMethodNotAllowedException,
RESTBadRequestException
Token and returns up-to-dated token.securityCtx - defines the calling user identity (i.e. caller) who submit this request together with cient application identity that can authorize and validate this request.subjectid - defines the SubjectID of the user whom the token is being validated.Token if token is valid.RESTMethodNotAllowedException -RESTUnauthorizedException - - if credential is mismatched for user.RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTUnauthorizedExceptionRESTMethodNotAllowedExceptionRESTBadRequestException
java.util.List<Token> getTokens(SecurityContext securityCtx,
SubjectID subjectid)
throws RESTNotFoundException,
RESTForbiddenException,
RESTUnauthorizedException,
RESTBadRequestException,
RESTMethodNotAllowedException
SubjectID.securityCtx - defines the calling user identity (i.e. caller) who submit this request together with cient application identity that can authorize and validate this request.subjectid - defines the SubjectID of the user whom the token is being retrieved.RESTMethodNotAllowedException -RESTUnauthorizedException -RESTBadRequestException -RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTUnauthorizedExceptionRESTBadRequestExceptionRESTMethodNotAllowedException
java.util.List<Token> getAllTokens(SecurityContext securityCtx,
SubjectID subjectid)
throws RESTNotFoundException,
RESTForbiddenException,
RESTUnauthorizedException,
RESTMethodNotAllowedException
securityCtx - defines the calling user identity (i.e. caller) who submit this request together with cient application identity that can authorize and validate this request.subjectid - defines the SubjectID of the user whom the token is being retrieved.RESTMethodNotAllowedException -RESTUnauthorizedException -RESTServerRuntimeException -RESTNotFoundExceptionRESTForbiddenExceptionRESTUnauthorizedExceptionRESTMethodNotAllowedException
|
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 | |||||||||