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 theSAMLService
interface.
-
-
Constructor Summary
Constructors Constructor Description DefaultSAMLService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCustomAttribute(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.String
getLanguage(org.springframework.security.saml.SAMLCredential credential, javax.servlet.http.HttpServletRequest request, CommonI18NService commonI18NService)
Getter for the language.java.lang.String
getUserId(org.springframework.security.saml.SAMLCredential credential)
Getter for the User ID.java.lang.String
getUserName(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:SAMLService
Getter for the User ID.- Specified by:
getUserId
in interfaceSAMLService
- Parameters:
credential
- samlCredential- Returns:
- userId
-
getUserName
public java.lang.String getUserName(org.springframework.security.saml.SAMLCredential credential)
Description copied from interface:SAMLService
Getter for the User Name.- Specified by:
getUserName
in 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:SAMLService
Getter for a custom attribute.- Specified by:
getCustomAttribute
in 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:SAMLService
Getter for custom attributes.- Specified by:
getCustomAttributes
in 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:SAMLService
Getter for the language.- Specified by:
getLanguage
in interfaceSAMLService
- Parameters:
credential
- samlCredentialrequest
- httpsServletrequestcommonI18NService
- commonI18NService- Returns:
- language
-
-