Class SamlSettings


  • public class SamlSettings
    extends Object
    Author:
    silveryocha
    • Method Detail

      • getSilverpeasDomainTypes

        public static Stream<org.silverpeas.core.admin.domain.DomainType> getSilverpeasDomainTypes()
        Gets the silverpeas's domain types the SSO is linked to.
        Returns:
        a Stream of DomainType.
      • getSilverpeasDomainId

        public static String getSilverpeasDomainId​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the domain id identifier from given request, or from default settings if none.
        Returns:
        a string.
      • getSsoServiceUrl

        public static String getSsoServiceUrl​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the SSO SAML URL.
        Returns:
        a string.
      • getAssertionConsumerServiceUrl

        public static String getAssertionConsumerServiceUrl​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the Assertion Consumer Service URL.
        Returns:
        a string.
      • getArtifactResolutionServiceUrl

        public static String getArtifactResolutionServiceUrl​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the Artifact Resolution Service URL.
        Returns:
        a string.
      • isNotBeforeAssertionConditionEnabled

        public static boolean isNotBeforeAssertionConditionEnabled​(javax.servlet.http.HttpServletRequest httpRequest)
        Indicates if the 'notBefore' condition is enabled for assertion.
        Returns:
        true if enabled, false otherwise.
      • isNotOnOrAfterAssertionConditionEnabled

        public static boolean isNotOnOrAfterAssertionConditionEnabled​(javax.servlet.http.HttpServletRequest httpRequest)
        Indicates if the 'notOnOrAfter' condition is enabled for assertion.
        Returns:
        true if enabled, false otherwise.
      • getEntityId

        public static String getEntityId​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the entity identifier.
        Returns:
        a string.
      • getSpCredential

        public static Optional<org.opensaml.security.credential.Credential> getSpCredential​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the SP credential.
        Returns:
        a string.
      • getIdpCredential

        public static org.opensaml.security.credential.Credential getIdpCredential​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the IDP credential.
        Returns:
        a string.
      • getAuthnContextComparison

        public static org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration getAuthnContextComparison​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the comparison method to use for authentication context.

        If not defined, AuthnContextComparisonTypeEnumeration.MINIMUM is taken into account.

        Returns:
        a AuthnContextComparisonTypeEnumeration instance.
      • getAuthnContextClass

        public static String getAuthnContextClass​(javax.servlet.http.HttpServletRequest httpRequest)
        Gets the class to use for authentication context.

        If not defined, AuthnContext.PASSWORD_AUTHN_CTX is taken into account.

        Returns:
        a AuthnContext constant about class.