Package org.silverpeas.sso.saml.settings
Class SamlSettings
java.lang.Object
org.silverpeas.sso.saml.settings.SamlSettings
- Author:
- silveryocha
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetArtifactResolutionServiceUrl(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the Artifact Resolution Service URL.static StringgetAssertionConsumerServiceUrl(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the Assertion Consumer Service URL.static StringgetAuthnContextClass(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the class to use for authentication context.static org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumerationgetAuthnContextComparison(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the comparison method to use for authentication context.static StringgetEntityId(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the entity identifier.static org.opensaml.security.credential.CredentialgetIdpCredential(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the IDP credential.static StringgetSilverpeasDomainId(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the domain id identifier from given request, or from default settings if none.static Stream<org.silverpeas.core.admin.domain.DomainType>Gets the silverpeas's domain types the SSO is linked to.static Optional<org.opensaml.security.credential.Credential>getSpCredential(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the SP credential.static StringgetSsoServiceUrl(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the SSO SAML URL.static booleanisNotBeforeAssertionConditionEnabled(jakarta.servlet.http.HttpServletRequest httpRequest) Indicates if the 'notBefore' condition is enabled for assertion.static booleanisNotOnOrAfterAssertionConditionEnabled(jakarta.servlet.http.HttpServletRequest httpRequest) Indicates if the 'notOnOrAfter' condition is enabled for assertion.
-
Method Details
-
getSilverpeasDomainTypes
Gets the silverpeas's domain types the SSO is linked to.- Returns:
- a Stream of
DomainType.
-
getSilverpeasDomainId
Gets the domain id identifier from given request, or from default settings if none.- Returns:
- a string.
-
getSsoServiceUrl
Gets the SSO SAML URL.- Returns:
- a string.
-
getAssertionConsumerServiceUrl
public static String getAssertionConsumerServiceUrl(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the Assertion Consumer Service URL.- Returns:
- a string.
-
getArtifactResolutionServiceUrl
public static String getArtifactResolutionServiceUrl(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the Artifact Resolution Service URL.- Returns:
- a string.
-
isNotBeforeAssertionConditionEnabled
public static boolean isNotBeforeAssertionConditionEnabled(jakarta.servlet.http.HttpServletRequest httpRequest) Indicates if the 'notBefore' condition is enabled for assertion.- Returns:
- true if enabled, false otherwise.
-
isNotOnOrAfterAssertionConditionEnabled
public static boolean isNotOnOrAfterAssertionConditionEnabled(jakarta.servlet.http.HttpServletRequest httpRequest) Indicates if the 'notOnOrAfter' condition is enabled for assertion.- Returns:
- true if enabled, false otherwise.
-
getEntityId
Gets the entity identifier.- Returns:
- a string.
-
getSpCredential
public static Optional<org.opensaml.security.credential.Credential> getSpCredential(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the SP credential.- Returns:
- a string.
-
getIdpCredential
public static org.opensaml.security.credential.Credential getIdpCredential(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the IDP credential.- Returns:
- a string.
-
getAuthnContextComparison
public static org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration getAuthnContextComparison(jakarta.servlet.http.HttpServletRequest httpRequest) Gets the comparison method to use for authentication context.If not defined,
AuthnContextComparisonTypeEnumeration.MINIMUMis taken into account.- Returns:
- a
AuthnContextComparisonTypeEnumerationinstance.
-
getAuthnContextClass
Gets the class to use for authentication context.If not defined,
AuthnContext.PASSWORD_AUTHN_CTXis taken into account.- Returns:
- a
AuthnContextconstant about class.
-