Class SAMLTokenProvider
- java.lang.Object
-
- org.apache.cxf.sts.token.provider.AbstractSAMLTokenProvider
-
- org.apache.cxf.sts.token.provider.SAMLTokenProvider
-
- All Implemented Interfaces:
TokenProvider
public class SAMLTokenProvider extends AbstractSAMLTokenProvider implements TokenProvider
A TokenProvider implementation that provides a SAML Token.
-
-
Constructor Summary
Constructors Constructor Description SAMLTokenProvider()
-
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.SamlCallbackHandlercreateCallbackHandler(TokenProviderParameters tokenParameters, byte[] secret, RealmProperties samlRealm, Document doc)TokenProviderResponsecreateToken(TokenProviderParameters tokenParameters)Create a token given a TokenProviderParametersList<AttributeStatementProvider>getAttributeStatementProviders()Get the List of AttributeStatementProviders.List<AuthDecisionStatementProvider>getAuthDecisionStatementProviders()Get the List of AuthDecisionStatementProviders.List<AuthenticationStatementProvider>getAuthenticationStatementProviders()Get the List of AuthenticationStatementProviders.ConditionsProvidergetConditionsProvider()Get the ConditionsProviderMap<String,RealmProperties>getRealmMap()Get the map of realm->RealmProperties for this token providerSubjectProvidergetSubjectProvider()Get the SubjectProvider.booleanisCombineClaimAttributes()booleanisSignToken()Return 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
-
-
-
-
Method Detail
-
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.- Specified by:
canHandleTokenin interfaceTokenProvider
-
createToken
public TokenProviderResponse createToken(TokenProviderParameters tokenParameters)
Create a token given a TokenProviderParameters- Specified by:
createTokenin interfaceTokenProvider
-
setAttributeStatementProviders
public void setAttributeStatementProviders(List<AttributeStatementProvider> attributeStatementProviders)
Set the List of AttributeStatementProviders.
-
getAttributeStatementProviders
public List<AttributeStatementProvider> getAttributeStatementProviders()
Get the List of AttributeStatementProviders.
-
setAuthenticationStatementProviders
public void setAuthenticationStatementProviders(List<AuthenticationStatementProvider> authnStatementProviders)
Set the List of AuthenticationStatementProviders.
-
getAuthenticationStatementProviders
public List<AuthenticationStatementProvider> getAuthenticationStatementProviders()
Get the List of AuthenticationStatementProviders.
-
setAuthDecisionStatementProviders
public void setAuthDecisionStatementProviders(List<AuthDecisionStatementProvider> authDecisionStatementProviders)
Set the List of AuthDecisionStatementProviders.
-
getAuthDecisionStatementProviders
public List<AuthDecisionStatementProvider> getAuthDecisionStatementProviders()
Get the List of AuthDecisionStatementProviders.
-
setSubjectProvider
public void setSubjectProvider(SubjectProvider subjectProvider)
Set the SubjectProvider.
-
getSubjectProvider
public SubjectProvider getSubjectProvider()
Get the SubjectProvider.
-
setConditionsProvider
public void setConditionsProvider(ConditionsProvider conditionsProvider)
Set the ConditionsProvider
-
getConditionsProvider
public 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
public void setRealmMap(Map<String,? extends RealmProperties> realms)
Set the map of realm->RealmProperties for this token provider- Parameters:
realms- the map of realm->RealmProperties for this token provider
-
getRealmMap
public Map<String,RealmProperties> getRealmMap()
Get the map of realm->RealmProperties for this token provider- Returns:
- the map of realm->RealmProperties for this token provider
-
setSamlCustomHandler
public void setSamlCustomHandler(SamlCustomHandler samlCustomHandler)
-
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)
-
-