public class SAMLTokenProvider extends AbstractSAMLTokenProvider implements TokenProvider
Constructor and Description |
---|
SAMLTokenProvider() |
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.
|
SamlCallbackHandler |
createCallbackHandler(TokenProviderParameters tokenParameters,
byte[] secret,
SAMLRealm samlRealm,
Document doc) |
TokenProviderResponse |
createToken(TokenProviderParameters tokenParameters)
Create a token given a TokenProviderParameters
|
List<AttributeStatementProvider> |
getAttributeStatementProviders()
Get the List of AttributeStatementProviders.
|
List<AuthDecisionStatementProvider> |
getAuthDecisionStatementProviders()
Get the List of AuthDecisionStatementProviders.
|
List<AuthenticationStatementProvider> |
getAuthenticationStatementProviders()
Get the List of AuthenticationStatementProviders.
|
ConditionsProvider |
getConditionsProvider()
Get the ConditionsProvider
|
Map<String,SAMLRealm> |
getRealmMap()
Get the map of realm->SAMLRealm for this token provider
|
SubjectProvider |
getSubjectProvider()
Get the SubjectProvider.
|
boolean |
isSignToken()
Return whether the provided token will be signed or not.
|
void |
setAttributeStatementProviders(List<AttributeStatementProvider> attributeStatementProviders)
Set the List of AttributeStatementProviders.
|
void |
setAuthDecisionStatementProviders(List<AuthDecisionStatementProvider> authDecisionStatementProviders)
Set the List of AuthDecisionStatementProviders.
|
void |
setAuthenticationStatementProviders(List<AuthenticationStatementProvider> authnStatementProviders)
Set the List of AuthenticationStatementProviders.
|
void |
setConditionsProvider(ConditionsProvider conditionsProvider)
Set the ConditionsProvider
|
void |
setRealmMap(Map<String,SAMLRealm> realms)
Set the map of realm->SAMLRealm for this token provider
|
void |
setSamlCustomHandler(SamlCustomHandler samlCustomHandler) |
void |
setSignToken(boolean signToken)
Set whether the provided token will be signed or not.
|
void |
setSubjectProvider(SubjectProvider subjectProvider)
Set the SubjectProvider.
|
signToken
public boolean canHandleToken(String tokenType)
canHandleToken
in interface TokenProvider
public boolean canHandleToken(String tokenType, String realm)
canHandleToken
in interface TokenProvider
public TokenProviderResponse createToken(TokenProviderParameters tokenParameters)
createToken
in interface TokenProvider
public void setAttributeStatementProviders(List<AttributeStatementProvider> attributeStatementProviders)
public List<AttributeStatementProvider> getAttributeStatementProviders()
public void setAuthenticationStatementProviders(List<AuthenticationStatementProvider> authnStatementProviders)
public List<AuthenticationStatementProvider> getAuthenticationStatementProviders()
public void setAuthDecisionStatementProviders(List<AuthDecisionStatementProvider> authDecisionStatementProviders)
public List<AuthDecisionStatementProvider> getAuthDecisionStatementProviders()
public void setSubjectProvider(SubjectProvider subjectProvider)
public SubjectProvider getSubjectProvider()
public void setConditionsProvider(ConditionsProvider conditionsProvider)
public ConditionsProvider getConditionsProvider()
public boolean isSignToken()
public void setSignToken(boolean signToken)
public void setRealmMap(Map<String,SAMLRealm> realms)
realms
- the map of realm->SAMLRealm for this token providerpublic Map<String,SAMLRealm> getRealmMap()
public void setSamlCustomHandler(SamlCustomHandler samlCustomHandler)
public SamlCallbackHandler createCallbackHandler(TokenProviderParameters tokenParameters, byte[] secret, SAMLRealm samlRealm, Document doc) throws Exception
Exception
Apache CXF