Class DefaultSAMLService

java.lang.Object
de.hybris.platform.samlsinglesignon.DefaultSAMLService
All Implemented Interfaces:
SAMLService

public class DefaultSAMLService extends Object implements SAMLService
Default implementation of the SAMLService interface.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getCustomAttribute(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal, String attributeName)
    Getter for a custom attribute.
    getCustomAttributes(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal, String attributeName)
    Getter for custom attributes.
    getLanguage(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal, javax.servlet.http.HttpServletRequest request, CommonI18NService commonI18NService)
    Getter for the language.
    getUserId(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal)
    Getter for the User ID.
    getUserName(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal)
    Getter for the User Name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultSAMLService

      public DefaultSAMLService()
  • Method Details

    • getUserId

      public String getUserId(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal)
      Description copied from interface: SAMLService
      Getter for the User ID.
      Specified by:
      getUserId in interface SAMLService
      Parameters:
      authenticatedPrincipal - samlAuthenticatedPrincipal
      Returns:
      userId
    • getUserName

      public String getUserName(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal)
      Description copied from interface: SAMLService
      Getter for the User Name.
      Specified by:
      getUserName in interface SAMLService
      Parameters:
      authenticatedPrincipal - samlAuthenticatedPrincipal
      Returns:
      userName
    • getCustomAttribute

      public String getCustomAttribute(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal, String attributeName)
      Description copied from interface: SAMLService
      Getter for a custom attribute.
      Specified by:
      getCustomAttribute in interface SAMLService
      Parameters:
      authenticatedPrincipal - samlAuthenticatedPrincipal
      attributeName - attributeName
      Returns:
      customAttribute
    • getCustomAttributes

      public List<String> getCustomAttributes(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal, String attributeName)
      Description copied from interface: SAMLService
      Getter for custom attributes.
      Specified by:
      getCustomAttributes in interface SAMLService
      Parameters:
      authenticatedPrincipal - samlAuthenticatedPrincipal
      attributeName - attributeName
      Returns:
      customAttributes
    • getLanguage

      public String getLanguage(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal, javax.servlet.http.HttpServletRequest request, CommonI18NService commonI18NService)
      Description copied from interface: SAMLService
      Getter for the language.
      Specified by:
      getLanguage in interface SAMLService
      Parameters:
      authenticatedPrincipal - samlAuthenticatedPrincipal
      request - httpsServletrequest
      commonI18NService - commonI18NService
      Returns:
      language