Class TokenProviderResponse
java.lang.Object
org.apache.cxf.sts.token.provider.TokenProviderResponse
This class encapsulates the response from a TokenProvider instance after creating a token.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the attached TokenReferenceGet the Instant that this Token was Createdbyte[]Get the entropy associated with the token.Get the Instant that this Token expireslongGet the KeySize that the TokenProvider setgetToken()Get the tokenGet the token IdGet the unattached TokenReferencebooleanReturn true if the entropy represents a Computed Key.voidsetAttachedReference(TokenReference attachedReference) Set the attached TokenReferencevoidsetComputedKey(boolean computedKey) Set whether the entropy represents a Computed Key or notvoidsetCreated(Instant created) Set the Instant that this Token was CreatedvoidsetEntropy(byte[] entropy) Set the entropy associated with the token.voidsetExpires(Instant expires) Set the Instant that this Token expiresvoidsetKeySize(long keySize) Set the KeySizevoidSet the tokenvoidsetTokenId(String tokenId) Set the token IdvoidsetUnattachedReference(TokenReference unattachedReference) Set the unattached TokenReference
-
Constructor Details
-
TokenProviderResponse
public TokenProviderResponse()
-
-
Method Details
-
isComputedKey
public boolean isComputedKey()Return true if the entropy represents a Computed Key. -
setComputedKey
public void setComputedKey(boolean computedKey) Set whether the entropy represents a Computed Key or not -
getKeySize
public long getKeySize()Get the KeySize that the TokenProvider set -
setKeySize
public void setKeySize(long keySize) Set the KeySize -
setToken
Set the token- Parameters:
token- the token to set
-
getToken
Get the token- Returns:
- the token to set
-
setTokenId
Set the token Id- Parameters:
tokenId- the token Id
-
getTokenId
Get the token Id- Returns:
- the token Id
-
setEntropy
public void setEntropy(byte[] entropy) Set the entropy associated with the token.- Parameters:
entropy- the entropy associated with the token.
-
getEntropy
public byte[] getEntropy()Get the entropy associated with the token.- Returns:
- the entropy associated with the token.
-
setAttachedReference
Set the attached TokenReference- Parameters:
attachedReference- the attached TokenReference
-
getAttachedReference
Get the attached TokenReference- Returns:
- the attached TokenReference
-
setUnattachedReference
Set the unattached TokenReference- Parameters:
unattachedReference- Set the unattached TokenReference
-
getUnAttachedReference
Get the unattached TokenReference- Returns:
- the unattached TokenReference
-
getCreated
Get the Instant that this Token was Created- Returns:
- the Instant that this Token was Created
-
setCreated
Set the Instant that this Token was Created- Parameters:
created- the Instant that this Token was Created
-
getExpires
Get the Instant that this Token expires- Returns:
- the Instant that this Token expires
-
setExpires
Set the Instant that this Token expires- Parameters:
expires- the Instant that this Token expires
-