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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthnContextClassRefs
(String... classRefs) authnContextClassRefs
(List<String> classRefs) AssignsAuthnContextClassRef
elements to theRequestedAuthnContext
object.authnContextDeclRefs
(String... declRefs) authnContextDeclRefs
(List<String> declRefs) AssignsAuthnContextDeclRef
elements to theRequestedAuthnContext
object.static RequestedAuthnContextBuilder
builder()
Utility method that creates a builder.comparison
(org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration type) Assigns theComparison
attribute to theRequestedAuthnContext
object.protected Class
<org.opensaml.saml.saml2.core.RequestedAuthnContext> Returns the object type.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
RequestedAuthnContextBuilder
public RequestedAuthnContextBuilder()
-
-
Method Details
-
builder
Utility method that creates a builder.- Returns:
- a builder
-
comparison
public RequestedAuthnContextBuilder comparison(org.opensaml.saml.saml2.core.AuthnContextComparisonTypeEnumeration type) Assigns theComparison
attribute to theRequestedAuthnContext
object.- Parameters:
type
- the type of comparison- Returns:
- the builder
-
authnContextClassRefs
AssignsAuthnContextClassRef
elements to theRequestedAuthnContext
object.- Parameters:
classRefs
- authentication context class references- Returns:
- the builder
-
authnContextClassRefs
- Parameters:
classRefs
- authentication context class references- Returns:
- the builder
-
authnContextDeclRefs
AssignsAuthnContextDeclRef
elements to theRequestedAuthnContext
object.- Parameters:
declRefs
- authentication context declaration references- Returns:
- the builder
-
authnContextDeclRefs
- Parameters:
declRefs
- authentication context declaration references- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.RequestedAuthnContext>
- Returns:
- the object type
-