Class DefaultSAMLService
- java.lang.Object
-
- de.hybris.platform.samlsinglesignon.DefaultSAMLService
-
- All Implemented Interfaces:
SAMLService
public class DefaultSAMLService extends java.lang.Object implements SAMLService
Default implementation of theSAMLServiceinterface.
-
-
Constructor Summary
Constructors Constructor Description DefaultSAMLService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCustomAttribute(org.springframework.security.saml.SAMLCredential credential, java.lang.String attributeName)Getter for a custom attribute.java.util.List<java.lang.String>getCustomAttributes(org.springframework.security.saml.SAMLCredential credential, java.lang.String attributeName)Getter for custom attributes.java.lang.StringgetLanguage(org.springframework.security.saml.SAMLCredential credential, javax.servlet.http.HttpServletRequest request, CommonI18NService commonI18NService)Getter for the language.java.lang.StringgetUserId(org.springframework.security.saml.SAMLCredential credential)Getter for the User ID.java.lang.StringgetUserName(org.springframework.security.saml.SAMLCredential credential)Getter for the User Name.
-
-
-
Method Detail
-
getUserId
public java.lang.String getUserId(org.springframework.security.saml.SAMLCredential credential)
Description copied from interface:SAMLServiceGetter for the User ID.- Specified by:
getUserIdin interfaceSAMLService- Parameters:
credential- samlCredential- Returns:
- userId
-
getUserName
public java.lang.String getUserName(org.springframework.security.saml.SAMLCredential credential)
Description copied from interface:SAMLServiceGetter for the User Name.- Specified by:
getUserNamein interfaceSAMLService- Parameters:
credential- samlCredential- Returns:
- userName
-
getCustomAttribute
public java.lang.String getCustomAttribute(org.springframework.security.saml.SAMLCredential credential, java.lang.String attributeName)Description copied from interface:SAMLServiceGetter for a custom attribute.- Specified by:
getCustomAttributein interfaceSAMLService- Parameters:
credential- samlCredentialattributeName- attributeName- Returns:
- customAttribute
-
getCustomAttributes
public java.util.List<java.lang.String> getCustomAttributes(org.springframework.security.saml.SAMLCredential credential, java.lang.String attributeName)Description copied from interface:SAMLServiceGetter for custom attributes.- Specified by:
getCustomAttributesin interfaceSAMLService- Parameters:
credential- samlCredentialattributeName- attributeName- Returns:
- customAttributes
-
getLanguage
public java.lang.String getLanguage(org.springframework.security.saml.SAMLCredential credential, javax.servlet.http.HttpServletRequest request, CommonI18NService commonI18NService)Description copied from interface:SAMLServiceGetter for the language.- Specified by:
getLanguagein interfaceSAMLService- Parameters:
credential- samlCredentialrequest- httpsServletrequestcommonI18NService- commonI18NService- Returns:
- language
-
-