Class SamlObjectsFactory

java.lang.Object
de.hybris.platform.samlsinglesignon.security.SamlObjectsFactory

public class SamlObjectsFactory extends Object
Factory class which returns SAML related objects
  • Field Details

    • DEFAULT_FILTER_PROCESSES_URI

      protected static final String DEFAULT_FILTER_PROCESSES_URI
      See Also:
    • DEFAULT_METADATA_URI

      protected static final String DEFAULT_METADATA_URI
      See Also:
    • DEFAULT_SINGLE_LOGOUT_URI

      protected static final String 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

      protected static final String DEFAULT_LEGACY_FILTER_PROCESSES_URI
      See Also:
    • DEFAULT_LEGACY_METADATA_URI

      protected static final String DEFAULT_LEGACY_METADATA_URI
      See Also:
    • DEFAULT_LEGACY_SINGLE_LOGOUT_URI

      protected static final String 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)
      Returns repository containing RelyingPartyRegistration object crated based on provided metadata file and property : sso.relyingPartyRegistration.registrationId
      Parameters:
      metadataFile - metadata file which holds the IDP info
      Returns:
      the RelyingPartyRegistrationRepository for 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

      public static String getFilterProcessesUrl()
    • getRegistrationId

      protected static String getRegistrationId()