Class RequestedAuthnContextBuilder

java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.RequestedAuthnContext>
se.swedenconnect.opensaml.saml2.core.build.RequestedAuthnContextBuilder
All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.core.RequestedAuthnContext>

public class RequestedAuthnContextBuilder extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.RequestedAuthnContext>
A builder for RequestedAuthnContext elements.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • RequestedAuthnContextBuilder

      public RequestedAuthnContextBuilder()
  • Method Details

    • builder

      public static RequestedAuthnContextBuilder builder()
      Utility method that creates a builder.
      Returns:
      a builder
    • comparison

      public RequestedAuthnContextBuilder comparison(org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration type)
      Assigns the Comparison attribute to the RequestedAuthnContext object.
      Parameters:
      type - the type of comparison
      Returns:
      the builder
    • authnContextClassRefs

      public RequestedAuthnContextBuilder authnContextClassRefs(List<String> classRefs)
      Assigns AuthnContextClassRef elements to the RequestedAuthnContext object.
      Parameters:
      classRefs - authentication context class references
      Returns:
      the builder
    • authnContextClassRefs

      public RequestedAuthnContextBuilder authnContextClassRefs(String... classRefs)
      Parameters:
      classRefs - authentication context class references
      Returns:
      the builder
    • authnContextDeclRefs

      public RequestedAuthnContextBuilder authnContextDeclRefs(List<String> declRefs)
      Assigns AuthnContextDeclRef elements to the RequestedAuthnContext object.
      Parameters:
      declRefs - authentication context declaration references
      Returns:
      the builder
    • authnContextDeclRefs

      public RequestedAuthnContextBuilder authnContextDeclRefs(String... declRefs)
      Parameters:
      declRefs - authentication context declaration references
      Returns:
      the builder
    • getObjectType

      protected Class<org.opensaml.saml.saml2.core.RequestedAuthnContext> getObjectType()
      Returns the object type.
      Specified by:
      getObjectType in class AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.RequestedAuthnContext>
      Returns:
      the object type