public class SCTProvider extends Object implements TokenProvider
Constructor and Description |
---|
SCTProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleToken(String tokenType)
Return true if this TokenProvider implementation is capable of providing a token
that corresponds to the given TokenType.
|
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.
|
TokenProviderResponse |
createToken(TokenProviderParameters tokenParameters)
Create a token given a TokenProviderParameters
|
long |
getLifetime()
Return the lifetime of the generated SCT
|
boolean |
isReturnEntropy()
Get whether Entropy is returned to the client or not
|
void |
setLifetime(long lifetime)
Set the lifetime of the generated SCT
|
void |
setReturnEntropy(boolean returnEntropy)
Set whether Entropy is returned to the client or not
|
public long getLifetime()
public void setLifetime(long lifetime)
lifetime
- the lifetime of the generated SCTpublic boolean canHandleToken(String tokenType)
canHandleToken
in interface TokenProvider
public boolean canHandleToken(String tokenType, String realm)
canHandleToken
in interface TokenProvider
public void setReturnEntropy(boolean returnEntropy)
returnEntropy
- whether Entropy is returned to the client or notpublic boolean isReturnEntropy()
public TokenProviderResponse createToken(TokenProviderParameters tokenParameters)
createToken
in interface TokenProvider
Copyright © 2018 JBoss by Red Hat. All rights reserved.