Class SCTProvider
java.lang.Object
org.apache.cxf.sts.token.provider.SCTProvider
- All Implemented Interfaces:
TokenProvider
A TokenProvider implementation that provides a SecurityContextToken.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleToken(String tokenType) Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType.booleancanHandleToken(String tokenType, String realm) Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realm.createToken(TokenProviderParameters tokenParameters) Create a token given a TokenProviderParameterslongReturn the lifetime of the generated SCTbooleanGet whether Entropy is returned to the client or notvoidsetLifetime(long lifetime) Set the lifetime of the generated SCTvoidsetReturnEntropy(boolean returnEntropy) Set whether Entropy is returned to the client or not
-
Constructor Details
-
SCTProvider
public SCTProvider()
-
-
Method Details
-
getLifetime
public long getLifetime()Return the lifetime of the generated SCT- Returns:
- the lifetime of the generated SCT
-
setLifetime
public void setLifetime(long lifetime) Set the lifetime of the generated SCT- Parameters:
lifetime- the lifetime of the generated SCT
-
canHandleToken
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType.- Specified by:
canHandleTokenin interfaceTokenProvider
-
canHandleToken
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realm. The realm is ignored in this token provider.- Specified by:
canHandleTokenin interfaceTokenProvider
-
setReturnEntropy
public void setReturnEntropy(boolean returnEntropy) Set whether Entropy is returned to the client or not- Parameters:
returnEntropy- whether Entropy is returned to the client or not
-
isReturnEntropy
public boolean isReturnEntropy()Get whether Entropy is returned to the client or not- Returns:
- whether Entropy is returned to the client or not
-
createToken
Create a token given a TokenProviderParameters- Specified by:
createTokenin interfaceTokenProvider
-