Class SCTProvider
- java.lang.Object
-
- org.apache.cxf.sts.token.provider.SCTProvider
-
- All Implemented Interfaces:
TokenProvider
public class SCTProvider extends Object implements TokenProvider
A TokenProvider implementation that provides a SecurityContextToken.
-
-
Constructor Summary
Constructors Constructor Description SCTProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandleToken(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.TokenProviderResponsecreateToken(TokenProviderParameters tokenParameters)Create a token given a TokenProviderParameterslonggetLifetime()Return the lifetime of the generated SCTbooleanisReturnEntropy()Get 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
-
-
-
Method Detail
-
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
public boolean canHandleToken(String tokenType)
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType.- Specified by:
canHandleTokenin interfaceTokenProvider
-
canHandleToken
public boolean canHandleToken(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. 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
public TokenProviderResponse createToken(TokenProviderParameters tokenParameters)
Create a token given a TokenProviderParameters- Specified by:
createTokenin interfaceTokenProvider
-
-