Class SamlProfileSamlAttributeStatementBuilder

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.attr.SamlProfileSamlAttributeStatementBuilder
All Implemented Interfaces:
Serializable, org.apereo.cas.support.saml.util.Saml20ObjectBuilder, SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AttributeStatement>

public class SamlProfileSamlAttributeStatementBuilder extends org.apereo.cas.support.saml.util.AbstractSaml20ObjectBuilder implements SamlProfileObjectBuilder<org.opensaml.saml.saml2.core.AttributeStatement>
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
    SamlProfileSamlAttributeStatementBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean, org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties samlIdPProperties, SamlIdPObjectEncrypter samlObjectEncrypter, org.apereo.cas.authentication.attribute.AttributeDefinitionStore attributeDefinitionStore, org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> serviceFactory, SamlProfileObjectBuilder<org.opensaml.saml.common.SAMLObject> samlNameIdBuilder, org.opensaml.saml.metadata.resolver.MetadataResolver samlIdPMetadataResolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensaml.saml.saml2.core.AttributeStatement
    Build.
    protected Collection<String>
    Gets mapped attribute names from attribute definition store.
    org.opensaml.saml.saml2.core.AttributeStatement
    newAttributeStatement(SamlProfileBuilderContext context, Map<String,Object> attributes, org.apereo.cas.support.saml.util.Saml20AttributeBuilder builder)
    New attribute statement.

    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

    • SamlProfileSamlAttributeStatementBuilder

      public SamlProfileSamlAttributeStatementBuilder(org.apereo.cas.support.saml.OpenSamlConfigBean configBean, org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties samlIdPProperties, SamlIdPObjectEncrypter samlObjectEncrypter, org.apereo.cas.authentication.attribute.AttributeDefinitionStore attributeDefinitionStore, org.apereo.cas.authentication.principal.ServiceFactory<org.apereo.cas.authentication.principal.WebApplicationService> serviceFactory, SamlProfileObjectBuilder<org.opensaml.saml.common.SAMLObject> samlNameIdBuilder, org.opensaml.saml.metadata.resolver.MetadataResolver samlIdPMetadataResolver)
  • Method Details

    • build

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

      public org.opensaml.saml.saml2.core.AttributeStatement newAttributeStatement(SamlProfileBuilderContext context, Map<String,Object> attributes, org.apereo.cas.support.saml.util.Saml20AttributeBuilder builder) throws Exception
      New attribute statement.
      Parameters:
      context - the context
      attributes - the attributes
      builder - the builder
      Returns:
      the attribute statement
      Throws:
      Exception - the exception
    • getMappedAttributeNamesFromAttributeDefinitionStore

      protected Collection<String> getMappedAttributeNamesFromAttributeDefinitionStore(Map.Entry<String,Object> entry)
      Gets mapped attribute names from attribute definition store.
      Parameters:
      entry - the entry
      Returns:
      the mapped attribute names from attribute definition store