Class DefaultSAMLService
java.lang.Object
de.hybris.platform.samlsinglesignon.DefaultSAMLService
- All Implemented Interfaces:
SAMLService
Default implementation of the
SAMLService interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCustomAttribute(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.
-
Constructor Details
-
DefaultSAMLService
public DefaultSAMLService()
-
-
Method Details
-
getUserId
public String getUserId(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal) Description copied from interface:SAMLServiceGetter for the User ID.- Specified by:
getUserIdin interfaceSAMLService- Parameters:
authenticatedPrincipal- samlAuthenticatedPrincipal- Returns:
- userId
-
getUserName
public String getUserName(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal) Description copied from interface:SAMLServiceGetter for the User Name.- Specified by:
getUserNamein interfaceSAMLService- Parameters:
authenticatedPrincipal- samlAuthenticatedPrincipal- Returns:
- userName
-
getCustomAttribute
public String getCustomAttribute(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal, String attributeName) Description copied from interface:SAMLServiceGetter for a custom attribute.- Specified by:
getCustomAttributein interfaceSAMLService- Parameters:
authenticatedPrincipal- samlAuthenticatedPrincipalattributeName- attributeName- Returns:
- customAttribute
-
getCustomAttributes
public List<String> getCustomAttributes(org.springframework.security.saml2.provider.service.authentication.Saml2AuthenticatedPrincipal authenticatedPrincipal, String attributeName) Description copied from interface:SAMLServiceGetter for custom attributes.- Specified by:
getCustomAttributesin interfaceSAMLService- Parameters:
authenticatedPrincipal- samlAuthenticatedPrincipalattributeName- 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:SAMLServiceGetter for the language.- Specified by:
getLanguagein interfaceSAMLService- Parameters:
authenticatedPrincipal- samlAuthenticatedPrincipalrequest- httpsServletrequestcommonI18NService- commonI18NService- Returns:
- language
-