|
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.common.Token
public class Token
Token
includes all the user / client / Provider specific token information in the request. JAX-RS Request Handler parses each request and generates this instance. The RESTful Identity Service Adaptor/Helper layer invokes Token Service provider implementation with this parameter.
Nested Class Summary | |
---|---|
static class |
Token.Type Enumerated Token Type. |
Field Summary | |
---|---|
static java.lang.String |
USERDN_ATTR |
Constructor Summary | |
---|---|
Token() No Arg Token Constructor |
|
Token(java.lang.String tValue) Token Constructor with Token value |
|
Token(java.lang.String tId, java.lang.String tVal, java.lang.String tType) Token Constructor with Token ID, Token Value and Token Type |
|
Token(java.lang.String tId, java.lang.String tVal, java.lang.String tkType, TokenValueFormatHelper h) Token Constructor with Token ID, Token Value, Token Type, Token Value Format Helper |
|
Token(java.lang.String tVal, TokenValueFormatHelper h) Token Constructor with Token value and Token Value Format Helper |
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String attrName) getAttribute returns matching session attribute with attribute name for Token . |
java.lang.Iterable<java.lang.String> |
getAttributeNames() return attribute name set of this token |
PluginContext |
getPluginContext() return Plugin Context used in Security Plugin Integration |
java.lang.String |
getPrincipal() getPrincipal returns user principal for the token |
java.lang.String |
getTokenId() getTokenId returns TokenId . |
java.lang.String |
getTokenProviderType() return Token Provider Type (if applicable) |
Token.Type |
getTokenType() getTokenType returns TokenType from Token . |
java.lang.String |
getTokenTypeString() getTokenTypeString returns TokenType from Token in String format. |
java.lang.String |
getTokenValue() getTokenValue returns opaque token value from Token . |
java.lang.String |
getUserDN() return User LDAP DN (if applicable) |
java.lang.String |
getUserPrincipalAttrName() getUserPrincipalAttrName returns user principal Attribute Name for the token |
void |
setAttribute(java.lang.String attrName, java.lang.String attrValue) setAttribute sets individual session attribute for Token |
void |
setPluginContext(PluginContext pluginContext) setting Plugin Context used in Security Plugin Integration |
void |
setPrincipal(java.lang.String principal) setPrincipal sets user principal for token |
void |
setTokenId(java.lang.String id) setTokenId sets TokenId into Token |
void |
setTokenProviderType(java.lang.String providerType) set Token Provider Type (if applicable) |
void |
setTokenType(java.lang.String type) Deprecated. |
void |
setTokenType(Token.Type type) setTokenType sets TokenType into Token TokenType is one of followings : - userToken, clientToken, serviceToken |
void |
setTokenTypeString(java.lang.String type) setTokenTypeString sets TokenType into Token TokenType is one of followings : - userToken, clientToken, serviceToken |
void |
setTokenValue(java.lang.String v) setTokenValue sets the token value into Token . |
void |
setUserDN(java.lang.String userDN) set User LDAP DN (if applicable) |
void |
setUserPrincipalAttrName(java.lang.String principalAttrName) setUserPrincipalAttrName sets user principal Attribute Name for token |
java.lang.String |
toString() Value returned by this "toString()" may change in future. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USERDN_ATTR
Constructor Detail |
---|
public Token()
public Token(java.lang.String tId, java.lang.String tVal, java.lang.String tkType, TokenValueFormatHelper h) throws InvalidToken
InvalidToken
public Token(java.lang.String tValue) throws InvalidToken
InvalidToken
public Token(java.lang.String tVal, TokenValueFormatHelper h) throws InvalidToken
InvalidToken
public Token(java.lang.String tId, java.lang.String tVal, java.lang.String tType) throws InvalidToken
InvalidToken
Method Detail |
---|
public java.lang.String getTokenId()
getTokenId
returns TokenId
.TokenId
that is unique value to identify the token.public void setTokenId(java.lang.String id)
setTokenId
sets TokenId
into Token
public java.lang.String getTokenValue()
getTokenValue
returns opaque token value from Token
.public void setTokenValue(java.lang.String v) throws InvalidToken
setTokenValue
sets the token value into Token
.InvalidToken
public Token.Type getTokenType()
getTokenType
returns TokenType
from Token
.TokenType
that is one of following : - userToken, clientToken, serviceToken, localTokenpublic java.lang.String getTokenTypeString()
getTokenTypeString
returns TokenType
from Token
in String
format.TokenType
that is one of following : - userToken, clientToken, serviceToken, localTokenpublic void setTokenType(Token.Type type)
setTokenType
sets TokenType
into Token
TokenType
is one of followings : - userToken, clientToken, serviceToken
@Deprecated
public void setTokenType(java.lang.String type)
public void setTokenTypeString(java.lang.String type)
setTokenTypeString
sets TokenType
into Token
TokenType
is one of followings : - userToken, clientToken, serviceTokenpublic java.lang.Iterable<java.lang.String> getAttributeNames()
public void setAttribute(java.lang.String attrName, java.lang.String attrValue)
setAttribute
sets individual session attribute for Token
public java.lang.String getAttribute(java.lang.String attrName)
getAttribute
returns matching session attribute with attribute name for Token
.public void setPluginContext(PluginContext pluginContext)
pluginContext
- Plugin Context used in Security Plugin Integrationpublic PluginContext getPluginContext()
public java.lang.String getUserPrincipalAttrName()
getUserPrincipalAttrName
returns user principal Attribute Name for the tokenpublic void setUserPrincipalAttrName(java.lang.String principalAttrName)
setUserPrincipalAttrName
sets user principal Attribute Name for tokenpublic java.lang.String getPrincipal()
getPrincipal
returns user principal for the tokenpublic void setPrincipal(java.lang.String principal)
setPrincipal
sets user principal for tokenpublic void setUserDN(java.lang.String userDN)
userDN
- User LDAP DN (if applicable)public java.lang.String getUserDN()
public void setTokenProviderType(java.lang.String providerType)
providerType
- Token Provider Type (if applicable)public java.lang.String getTokenProviderType()
public java.lang.String toString()
toString
in class java.lang.Object
|
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 |