Class SamlObjectsFactory
java.lang.Object
de.hybris.platform.samlsinglesignon.security.SamlObjectsFactory
Factory class which returns SAML related objects
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final org.springframework.security.saml2.provider.service.registration.Saml2MessageBindingprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.security.authentication.AuthenticationProviderCreates authentication provider with additional SessionIndexstatic Stringstatic org.springframework.security.web.util.matcher.RequestMatcherstatic org.springframework.security.saml2.provider.service.web.authentication.logout.Saml2LogoutRequestResolvergetOpenSaml4LogoutRequestResolver(org.springframework.security.saml2.provider.service.web.DefaultRelyingPartyRegistrationResolver relyingPartyRepository) Creates OpenSaml4LogoutRequestResolver with additional SessionIndex handlingprotected static Stringstatic org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepositorygetRelyingPartyRegistrationRepository(File metadataFile, String entityId, org.springframework.security.saml2.core.Saml2X509Credential signingAndDecryptionSaml2Credentials, org.opensaml.saml.metadata.resolver.filter.impl.SignatureValidationFilter signatureValidationFilter) ReturnsrepositorycontainingRelyingPartyRegistrationobject crated based on provided metadata file and property : sso.relyingPartyRegistration.registrationIdstatic org.springframework.security.web.util.matcher.RequestMatcherprotected static boolean
-
Field Details
-
DEFAULT_FILTER_PROCESSES_URI
- See Also:
-
DEFAULT_METADATA_URI
- See Also:
-
DEFAULT_SINGLE_LOGOUT_URI
- See Also:
-
DEFAULT_SINGLE_LOGOUT_BINDING
protected static final org.springframework.security.saml2.provider.service.registration.Saml2MessageBinding DEFAULT_SINGLE_LOGOUT_BINDING -
DEFAULT_LEGACY_FILTER_PROCESSES_URI
- See Also:
-
DEFAULT_LEGACY_METADATA_URI
- See Also:
-
DEFAULT_LEGACY_SINGLE_LOGOUT_URI
- See Also:
-
-
Constructor Details
-
SamlObjectsFactory
protected SamlObjectsFactory()
-
-
Method Details
-
getRelyingPartyRegistrationRepository
public static org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepository getRelyingPartyRegistrationRepository(File metadataFile, String entityId, org.springframework.security.saml2.core.Saml2X509Credential signingAndDecryptionSaml2Credentials, org.opensaml.saml.metadata.resolver.filter.impl.SignatureValidationFilter signatureValidationFilter) ReturnsrepositorycontainingRelyingPartyRegistrationobject crated based on provided metadata file and property : sso.relyingPartyRegistration.registrationId- Parameters:
metadataFile- metadata file which holds the IDP info- Returns:
- the
RelyingPartyRegistrationRepositoryfor given metadata file and registrationId
-
getOpenSaml4LogoutRequestResolver
public static org.springframework.security.saml2.provider.service.web.authentication.logout.Saml2LogoutRequestResolver getOpenSaml4LogoutRequestResolver(org.springframework.security.saml2.provider.service.web.DefaultRelyingPartyRegistrationResolver relyingPartyRepository) Creates OpenSaml4LogoutRequestResolver with additional SessionIndex handling- Parameters:
relyingPartyRepository-- Returns:
- Saml2LogoutRequestResolver
-
getAuthenticationProvider
public static org.springframework.security.authentication.AuthenticationProvider getAuthenticationProvider()Creates authentication provider with additional SessionIndex -
getMetadataRequestMatcher
public static org.springframework.security.web.util.matcher.RequestMatcher getMetadataRequestMatcher() -
legacyEndpointsEnabled
protected static boolean legacyEndpointsEnabled() -
getSingleLogoutRequestMatcher
public static org.springframework.security.web.util.matcher.RequestMatcher getSingleLogoutRequestMatcher() -
getFilterProcessesUrl
-
getRegistrationId
-