Class TokenContext
- java.lang.Object
-
- org.sourceid.wstrust.plugin.generate.TokenContext
-
public class TokenContext extends Object
This class contains context data used for generation of a token.
-
-
Constructor Summary
Constructors Constructor Description TokenContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getInParameters()A map that contains a set of input parameters which will be available during token generation.KeygetSecretKey()Retrieve the secret key associated with the security token.Map<String,AttributeValue>getSubjectAttributes()Retrieve the map of attributes that uniquely identify the context of a token.booleanisUseHolderOfKey()Indicate 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.
-
-
-
Method Detail
-
getSubjectAttributes
public Map<String,AttributeValue> 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
public void setSubjectAttributes(Map<String,AttributeValue> subjectAttributes)
Set the map of attributes that uniquely identify the context of a token.- Parameters:
subjectAttributes-
-
getSecretKey
public Key getSecretKey()
Retrieve the secret key associated with the security token.- Returns:
- the secret key
-
setSecretKey
public void setSecretKey(Key secretKey)
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
public Map<String,Object> getInParameters()
A map that contains a set of input parameters which will be available during token generation.- Returns:
- Since:
- 10.0
-
-