Class TokenContext
java.lang.Object
org.sourceid.wstrust.plugin.generate.TokenContext
This class contains context data used for generation of a token.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA map that contains a set of input parameters which will be available during token generation.Retrieve the secret key associated with the security token.Retrieve the map of attributes that uniquely identify the context of a token.booleanIndicate whether holder-of-key confirmation method is used.voidsetInParameters(Map<String, Object> inParameters) Setting a map that contains a set of input parameters which will be available during token generation.voidsetSecretKey(Key secretKey) Set the secret key associated with the security token.voidsetSubjectAttributes(Map<String, AttributeValue> subjectAttributes) Set the map of attributes that uniquely identify the context of a token.voidsetUseHolderOfKey(boolean use) Set by token generator to indicate whether holder-of-key confirmation method is used.
-
Constructor Details
-
TokenContext
public TokenContext()
-
-
Method Details
-
getSubjectAttributes
Retrieve the map of attributes that uniquely identify the context of a token. The keys of this map should be the same as the set of attributes defined as this token generator attribute contract in its TokenPluginDescriptor (DescribablePlugin.getPluginDescriptor()).- Returns:
- the map of attributes
-
setSubjectAttributes
Set the map of attributes that uniquely identify the context of a token.- Parameters:
subjectAttributes-
-
getSecretKey
Retrieve the secret key associated with the security token.- Returns:
- the secret key
-
setSecretKey
Set the secret key associated with the security token.- Parameters:
secretKey-
-
isUseHolderOfKey
public boolean isUseHolderOfKey()Indicate whether holder-of-key confirmation method is used. -
setUseHolderOfKey
public void setUseHolderOfKey(boolean use) Set by token generator to indicate whether holder-of-key confirmation method is used. -
getInParameters
A map that contains a set of input parameters which will be available during token generation.- Returns:
- Since:
- 10.0
-
setInParameters
Setting a map that contains a set of input parameters which will be available during token generation.- Parameters:
inParameters-- Since:
- 10.0
-