Package org.silverpeas.sso.saml.settings
Class SamlSettings
- java.lang.Object
-
- org.silverpeas.sso.saml.settings.SamlSettings
-
public class SamlSettings extends Object
- Author:
- silveryocha
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetArtifactResolutionServiceUrl(javax.servlet.http.HttpServletRequest httpRequest)Gets the Artifact Resolution Service URL.static StringgetAssertionConsumerServiceUrl(javax.servlet.http.HttpServletRequest httpRequest)Gets the Assertion Consumer Service URL.static StringgetAuthnContextClass(javax.servlet.http.HttpServletRequest httpRequest)Gets the class to use for authentication context.static org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumerationgetAuthnContextComparison(javax.servlet.http.HttpServletRequest httpRequest)Gets the comparison method to use for authentication context.static StringgetEntityId(javax.servlet.http.HttpServletRequest httpRequest)Gets the entity identifier.static org.opensaml.security.credential.CredentialgetIdpCredential(javax.servlet.http.HttpServletRequest httpRequest)Gets the IDP credential.static StringgetSilverpeasDomainId(javax.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>getSilverpeasDomainTypes()Gets the silverpeas's domain types the SSO is linked to.static Optional<org.opensaml.security.credential.Credential>getSpCredential(javax.servlet.http.HttpServletRequest httpRequest)Gets the SP credential.static StringgetSsoServiceUrl(javax.servlet.http.HttpServletRequest httpRequest)Gets the SSO SAML URL.static booleanisNotBeforeAssertionConditionEnabled(javax.servlet.http.HttpServletRequest httpRequest)Indicates if the 'notBefore' condition is enabled for assertion.static booleanisNotOnOrAfterAssertionConditionEnabled(javax.servlet.http.HttpServletRequest httpRequest)Indicates if the 'notOnOrAfter' condition is enabled for assertion.
-
-
-
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.MINIMUMis taken into account.- Returns:
- a
AuthnContextComparisonTypeEnumerationinstance.
-
getAuthnContextClass
public static String getAuthnContextClass(javax.servlet.http.HttpServletRequest httpRequest)
Gets the class to use for authentication context.If not defined,
AuthnContext.PASSWORD_AUTHN_CTXis taken into account.- Returns:
- a
AuthnContextconstant about class.
-
-