Class SAMLTokenProvider
java.lang.Object
org.apache.cxf.sts.token.provider.AbstractSAMLTokenProvider
org.apache.cxf.sts.token.provider.SAMLTokenProvider
- All Implemented Interfaces:
TokenProvider
A TokenProvider implementation that provides a SAML Token.
-
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.createCallbackHandler(TokenProviderParameters tokenParameters, byte[] secret, RealmProperties samlRealm, Document doc) createToken(TokenProviderParameters tokenParameters) Create a token given a TokenProviderParametersGet the List of AttributeStatementProviders.Get the List of AuthDecisionStatementProviders.Get the List of AuthenticationStatementProviders.Get the ConditionsProviderGet the map of realm->RealmProperties for this token providerGet the SubjectProvider.booleanbooleanReturn whether the provided token will be signed or not.voidsetAttributeStatementProviders(List<AttributeStatementProvider> attributeStatementProviders) Set the List of AttributeStatementProviders.voidsetAuthDecisionStatementProviders(List<AuthDecisionStatementProvider> authDecisionStatementProviders) Set the List of AuthDecisionStatementProviders.voidsetAuthenticationStatementProviders(List<AuthenticationStatementProvider> authnStatementProviders) Set the List of AuthenticationStatementProviders.voidsetCombineClaimAttributes(boolean combineClaimAttributes) voidsetConditionsProvider(ConditionsProvider conditionsProvider) Set the ConditionsProvidervoidsetRealmMap(Map<String, ? extends RealmProperties> realms) Set the map of realm->RealmProperties for this token providervoidsetSamlCustomHandler(SamlCustomHandler samlCustomHandler) voidsetSignToken(boolean signToken) Set whether the provided token will be signed or not.voidsetSubjectProvider(SubjectProvider subjectProvider) Set the SubjectProvider.Methods inherited from class org.apache.cxf.sts.token.provider.AbstractSAMLTokenProvider
signToken
-
Constructor Details
-
SAMLTokenProvider
public SAMLTokenProvider()
-
-
Method Details
-
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.- Specified by:
canHandleTokenin interfaceTokenProvider
-
createToken
Create a token given a TokenProviderParameters- Specified by:
createTokenin interfaceTokenProvider
-
setAttributeStatementProviders
public void setAttributeStatementProviders(List<AttributeStatementProvider> attributeStatementProviders) Set the List of AttributeStatementProviders. -
getAttributeStatementProviders
Get the List of AttributeStatementProviders. -
setAuthenticationStatementProviders
public void setAuthenticationStatementProviders(List<AuthenticationStatementProvider> authnStatementProviders) Set the List of AuthenticationStatementProviders. -
getAuthenticationStatementProviders
Get the List of AuthenticationStatementProviders. -
setAuthDecisionStatementProviders
public void setAuthDecisionStatementProviders(List<AuthDecisionStatementProvider> authDecisionStatementProviders) Set the List of AuthDecisionStatementProviders. -
getAuthDecisionStatementProviders
Get the List of AuthDecisionStatementProviders. -
setSubjectProvider
Set the SubjectProvider. -
getSubjectProvider
Get the SubjectProvider. -
setConditionsProvider
Set the ConditionsProvider -
getConditionsProvider
Get the ConditionsProvider -
isSignToken
public boolean isSignToken()Return whether the provided token will be signed or not. Default is true. -
setSignToken
public void setSignToken(boolean signToken) Set whether the provided token will be signed or not. Default is true. -
setRealmMap
Set the map of realm->RealmProperties for this token provider- Parameters:
realms- the map of realm->RealmProperties for this token provider
-
getRealmMap
Get the map of realm->RealmProperties for this token provider- Returns:
- the map of realm->RealmProperties for this token provider
-
setSamlCustomHandler
-
createCallbackHandler
public SamlCallbackHandler createCallbackHandler(TokenProviderParameters tokenParameters, byte[] secret, RealmProperties samlRealm, Document doc) throws Exception - Throws:
Exception
-
isCombineClaimAttributes
public boolean isCombineClaimAttributes() -
setCombineClaimAttributes
public void setCombineClaimAttributes(boolean combineClaimAttributes)
-