Class SamlProfileAuthnContextClassRefBuilder

java.lang.Object
org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder
org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder
org.apereo.cas.support.saml.web.idp.profile.builders.authn.SamlProfileAuthnContextClassRefBuilder
All Implemented Interfaces:
Serializable, org.apereo.cas.support.saml.util.Saml20ObjectBuilder, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AuthnContext>

public class SamlProfileAuthnContextClassRefBuilder extends org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder implements SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AuthnContext>
Since:
5.0.0
See Also:
  • Field Summary

    Fields inherited from class org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder

    DEFAULT_ELEMENT_LOCAL_NAME_FIELD, openSamlConfigBean
  • Constructor Summary

    Constructors
    Constructor
    Description
    SamlProfileAuthnContextClassRefBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean, org.opensaml.saml.metadata.resolver.MetadataResolver samlIdPMetadataResolver, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensaml.saml.saml2.core.AuthnContext
    Build.
    protected void
    buildDefaultAuthenticatingAuthority(SamlProfileBuilderContext context, org.opensaml.saml.saml2.core.AuthnContext authnContext)
     
    protected String
     
    protected String
    getAuthenticationContextByAssertion(SamlProfileBuilderContext context, org.opensaml.saml.saml2.core.RequestedAuthnContext requestedAuthnContext, List<org.opensaml.saml.saml2.core.AuthnContextClassRef> authnContextClassRefs)
     
    protected String
     

    Methods inherited from class org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder

    addAttributeValuesToSaml2Attribute, decodeSamlAuthnRequest, generateSecureRandomId, getNameID, inflateAuthnRequest, newAssertion, newAssertion, newAttribute, newAuthnStatement, newAuthnStatement, newConditions, newEcpResponse, newIssuer, newLogoutRequest, newLogoutResponse, newResponse, newSamlObject, newStatus, newSubject, newSubject

    Methods inherited from class org.apereo.cas.support.saml.util.AbstractSamlObjectBuilder

    addAttributeValuesToSamlAttribute, constructDocumentFromXml, getOpenSamlConfigBean, newAttributeValue, signSamlResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apereo.cas.support.saml.util.Saml20ObjectBuilder

    getSamlObjectQName, newSamlObject
  • Constructor Details

    • SamlProfileAuthnContextClassRefBuilder

      public SamlProfileAuthnContextClassRefBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean, org.opensaml.saml.metadata.resolver.MetadataResolver samlIdPMetadataResolver, org.apereo.cas.configuration.CasConfigurationProperties casProperties)
  • Method Details

    • build

      public org.opensaml.saml.saml2.core.AuthnContext build(SamlProfileBuilderContext context) throws Exception
      Description copied from interface: SamlProfileObjectBuilder
      Build.
      Specified by:
      build in interface SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AuthnContext>
      Parameters:
      context - the context
      Returns:
      the response
      Throws:
      Exception - the exception
    • buildDefaultAuthenticatingAuthority

      protected void buildDefaultAuthenticatingAuthority(SamlProfileBuilderContext context, org.opensaml.saml.saml2.core.AuthnContext authnContext) throws Exception
      Throws:
      Exception
    • buildDefaultAuthenticationContextClass

      protected String buildDefaultAuthenticationContextClass(String defClass, SamlProfileBuilderContext context)
    • getDefaultAuthenticationContextClass

      protected String getDefaultAuthenticationContextClass()
    • getAuthenticationContextByAssertion

      protected String getAuthenticationContextByAssertion(SamlProfileBuilderContext context, org.opensaml.saml.saml2.core.RequestedAuthnContext requestedAuthnContext, List<org.opensaml.saml.saml2.core.AuthnContextClassRef> authnContextClassRefs)