Class SAML2Authenticator

java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.profile.definition.ProfileDefinitionAware
org.pac4j.saml.credentials.authenticator.SAML2Authenticator
All Implemented Interfaces:
org.pac4j.core.credentials.authenticator.Authenticator

public class SAML2Authenticator extends org.pac4j.core.profile.definition.ProfileDefinitionAware implements org.pac4j.core.credentials.authenticator.Authenticator
Authenticator for SAML 2.0
Since:
2.0.0
Author:
Jerome Leleu
  • Field Details

    • SAML_CONDITION_NOT_BEFORE_ATTRIBUTE

      public static final String SAML_CONDITION_NOT_BEFORE_ATTRIBUTE
      Constant SAML_CONDITION_NOT_BEFORE_ATTRIBUTE="notBefore"
      See Also:
    • SAML_CONDITION_NOT_ON_OR_AFTER_ATTRIBUTE

      public static final String SAML_CONDITION_NOT_ON_OR_AFTER_ATTRIBUTE
      Constant SAML_CONDITION_NOT_ON_OR_AFTER_ATTRIBUTE="notOnOrAfter"
      See Also:
    • SESSION_INDEX

      public static final String SESSION_INDEX
      Constant SESSION_INDEX="sessionindex"
      See Also:
    • ISSUER_ID

      public static final String ISSUER_ID
      Constant ISSUER_ID="issuerId"
      See Also:
    • AUTHN_CONTEXT

      public static final String AUTHN_CONTEXT
      Constant AUTHN_CONTEXT="authnContext"
      See Also:
    • AUTHN_CONTEXT_AUTHORITIES

      public static final String AUTHN_CONTEXT_AUTHORITIES
      Constant AUTHN_CONTEXT_AUTHORITIES="authnContextAuthorities"
      See Also:
    • SAML_NAME_ID_FORMAT

      public static final String SAML_NAME_ID_FORMAT
      Constant SAML_NAME_ID_FORMAT="samlNameIdFormat"
      See Also:
    • SAML_NAME_ID_NAME_QUALIFIER

      public static final String SAML_NAME_ID_NAME_QUALIFIER
      Constant SAML_NAME_ID_NAME_QUALIFIER="samlNameIdNameQualifier"
      See Also:
    • SAML_NAME_ID_SP_NAME_QUALIFIER

      public static final String SAML_NAME_ID_SP_NAME_QUALIFIER
      Constant SAML_NAME_ID_SP_NAME_QUALIFIER="samlNameIdSpNameQualifier"
      See Also:
    • SAML_NAME_ID_SP_PROVIDED_ID

      public static final String SAML_NAME_ID_SP_PROVIDED_ID
      Constant SAML_NAME_ID_SP_PROVIDED_ID="samlNameIdSpProvidedId"
      See Also:
    • logger

      protected final org.slf4j.Logger logger
  • Constructor Details

  • Method Details

    • internalInit

      protected void internalInit(boolean forceReinit)
      Specified by:
      internalInit in class org.pac4j.core.util.InitializableObject
    • validate

      public Optional<org.pac4j.core.credentials.Credentials> validate(org.pac4j.core.context.CallContext ctx, org.pac4j.core.credentials.Credentials extractedCredentials)
      Specified by:
      validate in interface org.pac4j.core.credentials.authenticator.Authenticator
    • buildProfile

      protected void buildProfile(SAML2AuthenticationCredentials credentials)

      buildProfile.

      Parameters:
      credentials - a SAML2AuthenticationCredentials object