Class SAMLWrapper<T extends IAuthenticator<E>,E extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
- java.lang.Object
-
- de.xima.fc.web.common.auth.wrapper.SAMLWrapper<T,E>
-
- Type Parameters:
T
- the type of theIAuthenticator
E
- the type of the files of theIAuthenticator
- All Implemented Interfaces:
IAuthenticatorWrapper<T>
,Serializable
public class SAMLWrapper<T extends IAuthenticator<E>,E extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>> extends Object implements IAuthenticatorWrapper<T>
Wrapper for an saml authenticator- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SAMLWrapper(T authenticator)
-
Method Summary
-
-
-
Field Detail
-
ATTR_XML_CONFIG_FILE
public static final String ATTR_XML_CONFIG_FILE
- See Also:
- Constant Field Values
-
ATTR_KEYPAIR_PASSWORD
public static final String ATTR_KEYPAIR_PASSWORD
- See Also:
- Constant Field Values
-
ATTR_USER_MAPPING_ATTRIBUTES
public static final String ATTR_USER_MAPPING_ATTRIBUTES
- See Also:
- Constant Field Values
-
ATTR_KEYSTORE_FILE
public static final String ATTR_KEYSTORE_FILE
- See Also:
- Constant Field Values
-
ATTR_KEYSTORE_PASSWORD
public static final String ATTR_KEYSTORE_PASSWORD
- See Also:
- Constant Field Values
-
ATTR_CUST_KEYSTORE
public static final String ATTR_CUST_KEYSTORE
- See Also:
- Constant Field Values
-
ATTR_FORCE_AUTH
public static final String ATTR_FORCE_AUTH
- See Also:
- Constant Field Values
-
ATTR_PASSIVE
public static final String ATTR_PASSIVE
- See Also:
- Constant Field Values
-
ATTR_AUTH_REQ_BINDING_TYPE
public static final String ATTR_AUTH_REQ_BINDING_TYPE
- See Also:
- Constant Field Values
-
ATTR_SPLOGOUT_REQ_BINDING_TYPE
public static final String ATTR_SPLOGOUT_REQ_BINDING_TYPE
- See Also:
- Constant Field Values
-
ATTR_SPLOGOUT_RESP_BINDING_TYPE
public static final String ATTR_SPLOGOUT_RESP_BINDING_TYPE
- See Also:
- Constant Field Values
-
ATTR_RESPONSE_BINDING_TYPE
public static final String ATTR_RESPONSE_BINDING_TYPE
- See Also:
- Constant Field Values
-
ATTR_MAX_AUTH_LIFETIME
public static final String ATTR_MAX_AUTH_LIFETIME
- See Also:
- Constant Field Values
-
ATTR_MAX_CLOCK_SKEW
public static final String ATTR_MAX_CLOCK_SKEW
- See Also:
- Constant Field Values
-
ATTR_SERVICE_PROV_ENTITY_ID
public static final String ATTR_SERVICE_PROV_ENTITY_ID
- See Also:
- Constant Field Values
-
ATTR_USE_NAME_QUALIFIER
public static final String ATTR_USE_NAME_QUALIFIER
- See Also:
- Constant Field Values
-
ATTR_CONSUMING_SERVICE_IDX
public static final String ATTR_CONSUMING_SERVICE_IDX
- See Also:
- Constant Field Values
-
ATTR_ASSERT_CONS_SERVICE_IDX
public static final String ATTR_ASSERT_CONS_SERVICE_IDX
- See Also:
- Constant Field Values
-
ATTR_BLACKLLISTED_SIGN_ALGO
public static final String ATTR_BLACKLLISTED_SIGN_ALGO
- See Also:
- Constant Field Values
-
ATTR_SIGNATURE_ALGO
public static final String ATTR_SIGNATURE_ALGO
- See Also:
- Constant Field Values
-
ATTR_SIGNATURE_REF_DIGEST_METH
public static final String ATTR_SIGNATURE_REF_DIGEST_METH
- See Also:
- Constant Field Values
-
ATTR_SIG_CANON_ALGO
public static final String ATTR_SIG_CANON_ALGO
- See Also:
- Constant Field Values
-
ATTR_WANT_ASSERTION_SIGNED
public static final String ATTR_WANT_ASSERTION_SIGNED
- See Also:
- Constant Field Values
-
ATTR_WANT_RESPONSE_SIGNED
public static final String ATTR_WANT_RESPONSE_SIGNED
- See Also:
- Constant Field Values
-
ATTR_AUTH_REQUEST_SIGNED
public static final String ATTR_AUTH_REQUEST_SIGNED
- See Also:
- Constant Field Values
-
ATTR_LOGOUT_REQUEST_SIGNED
public static final String ATTR_LOGOUT_REQUEST_SIGNED
- See Also:
- Constant Field Values
-
ATTR_NAME_ID_POLICY_FORMAT
public static final String ATTR_NAME_ID_POLICY_FORMAT
- See Also:
- Constant Field Values
-
ATTR_NAME_ID_POLICY_ALLOW_CREATE
public static final String ATTR_NAME_ID_POLICY_ALLOW_CREATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SAMLWrapper
public SAMLWrapper(T authenticator)
-
-
Method Detail
-
getAuthenticator
public T getAuthenticator()
Description copied from interface:IAuthenticatorWrapper
Gets theIAuthenticator
-entity- Specified by:
getAuthenticator
in interfaceIAuthenticatorWrapper<T extends IAuthenticator<E>>
- Returns:
- the
IAuthenticator
-
getXmlConfigFile
public E getXmlConfigFile()
-
setXmlConfigFile
public void setXmlConfigFile(E xmlConfigFile)
-
getKeyPairPassword
public String getKeyPairPassword()
-
setKeyPairPassword
public void setKeyPairPassword(String keyPairPassword)
-
isCustomKeyStore
public boolean isCustomKeyStore()
-
setCustomKeyStore
public void setCustomKeyStore(boolean customKeyStore)
-
setUserMappingAttributes
public void setUserMappingAttributes(Map<String,String> userMappingAttributes)
-
setKeyStoreFile
public void setKeyStoreFile(E keyStoreFile)
-
getKeyStoreFile
public E getKeyStoreFile()
-
setKeyStorePassword
public void setKeyStorePassword(String password)
-
getKeyStorePassword
public String getKeyStorePassword()
-
isForceAuth
public boolean isForceAuth()
-
setForceAuth
public void setForceAuth(boolean forceAuth)
-
isPassive
public boolean isPassive()
-
setPassive
public void setPassive(boolean passive)
-
getAuthnRequestBindingType
public String getAuthnRequestBindingType()
-
setAuthnRequestBindingType
public void setAuthnRequestBindingType(String reqBindingType)
-
getSpLogoutRequestBindingType
public String getSpLogoutRequestBindingType()
-
setSpLogoutRequestBindingType
public void setSpLogoutRequestBindingType(String reqBindingType)
-
getSpLogoutResponseBindingType
public String getSpLogoutResponseBindingType()
-
setSpLogoutResponseBindingType
public void setSpLogoutResponseBindingType(String reqBindingType)
-
getResponseBindingType
public String getResponseBindingType()
-
setResponseBindingType
public void setResponseBindingType(String resBindingType)
-
getMaximumAuthenticationLifetime
public int getMaximumAuthenticationLifetime()
-
setMaximumAuthenticationLifetime
public void setMaximumAuthenticationLifetime(int maxAuthLifetime)
-
setMaxClockSkew
public void setMaxClockSkew(int maxClockSkew)
-
getMaxClockSkew
public int getMaxClockSkew()
-
getServiceProviderEntityId
public String getServiceProviderEntityId()
-
setServiceProviderEntityId
public void setServiceProviderEntityId(String providerEntityID)
-
isUseNameQualifier
public boolean isUseNameQualifier()
-
setUseNameQualifier
public void setUseNameQualifier(boolean nameQualifier)
-
getAttributeConsumingServiceIndex
public int getAttributeConsumingServiceIndex()
-
setAttributeConsumingServiceIndex
public void setAttributeConsumingServiceIndex(int consumingServiceIdx)
-
getAssertionConsumerServiceIndex
public int getAssertionConsumerServiceIndex()
-
setAssertionConsumerServiceIndex
public void setAssertionConsumerServiceIndex(int assConsServiceIdx)
-
isWantsAssertionsSigned
public boolean isWantsAssertionsSigned()
-
setWantsAssertionsSigned
public void setWantsAssertionsSigned(boolean signedAss)
-
isWantsResponseSigned
public boolean isWantsResponseSigned()
-
setWantsResponseSigned
public void setWantsResponseSigned(boolean signedAss)
-
isAuthnRequestSigned
public boolean isAuthnRequestSigned()
-
setAuthnRequestSigned
public void setAuthnRequestSigned(boolean signedAuth)
-
isLogoutRequestSigned
public boolean isLogoutRequestSigned()
-
setLogoutRequestSigned
public void setLogoutRequestSigned(boolean signedLogout)
-
getBlackListedSignatureSigningAlgorithms
public List<String> getBlackListedSignatureSigningAlgorithms()
-
setBlackListedSignatureSigningAlgorithms
public void setBlackListedSignatureSigningAlgorithms(List<String> blacklist)
-
getSignatureCanonicalizationAlgorithm
public String getSignatureCanonicalizationAlgorithm()
-
setSignatureCanonicalizationAlgorithm
public void setSignatureCanonicalizationAlgorithm(String list)
-
setSignatureReferenceDigestMethods
public void setSignatureReferenceDigestMethods(List<String> blacklist)
-
getNameIdPolicyFormat
public String getNameIdPolicyFormat()
-
setNameIdPolicyFormat
public void setNameIdPolicyFormat(String format)
-
isNameIdPolicyAllowCreate
public boolean isNameIdPolicyAllowCreate()
-
setNameIdPolicyAllowCreate
public void setNameIdPolicyAllowCreate(boolean allowCreate)
-
buildAuthClient
public org.pac4j.core.client.Client buildAuthClient(IFormAuthContext authCtx)
Description copied from interface:IAuthenticatorWrapper
Builds the authentication client based on the current data of the wrapper- Specified by:
buildAuthClient
in interfaceIAuthenticatorWrapper<T extends IAuthenticator<E>>
- Parameters:
authCtx
-IFormAuthContext
to build the client for- Returns:
- the
Client
-
-