Class AuthnRequirements.AuthnRequirementsBuilder
java.lang.Object
se.idsec.signservice.integration.authentication.AuthnRequirements.AuthnRequirementsBuilder
- All Implemented Interfaces:
ObjectBuilder<AuthnRequirements>
- Enclosing class:
- AuthnRequirements
public static class AuthnRequirements.AuthnRequirementsBuilder
extends Object
implements ObjectBuilder<AuthnRequirements>
Builder for
AuthnRequirements
objects.-
Method Summary
Modifier and TypeMethodDescriptionauthnContextClassRef
(String authnContextClassRef) authnContextClassRefs
(Collection<? extends String> authnContextClassRefs) authnContextRef
(String authnContextRef) Deprecated.authnProfile
(String authnProfile) An opaque string that can be used to inform the Signing Service about specific requirements regarding the user authentication at the given Identity Provider.authnServiceID
(String authnServiceID) The entityID of the authentication service (Identity Provider) that will authenticate the signer as part of the signature process.build()
Builds the object.Extensions for the object.requestedSignerAttribute
(SignerIdentityAttributeValue requestedSignerAttribute) requestedSignerAttributes
(Collection<? extends SignerIdentityAttributeValue> requestedSignerAttributes) toString()
-
Method Details
-
authnContextRef
@Deprecated public AuthnRequirements.AuthnRequirementsBuilder authnContextRef(String authnContextRef) Deprecated.For backwards compatibility. UseauthnContextClassRef(String)
instead.- Parameters:
authnContextRef
- the AuthnContextClassRef URI- Returns:
- the builder
-
authnServiceID
The entityID of the authentication service (Identity Provider) that will authenticate the signer as part of the signature process.- Returns:
this
.
-
authnProfile
An opaque string that can be used to inform the Signing Service about specific requirements regarding the user authentication at the given Identity Provider.- Returns:
this
.
-
authnContextClassRef
-
authnContextClassRefs
public AuthnRequirements.AuthnRequirementsBuilder authnContextClassRefs(Collection<? extends String> authnContextClassRefs) -
clearAuthnContextClassRefs
-
requestedSignerAttribute
public AuthnRequirements.AuthnRequirementsBuilder requestedSignerAttribute(SignerIdentityAttributeValue requestedSignerAttribute) -
requestedSignerAttributes
public AuthnRequirements.AuthnRequirementsBuilder requestedSignerAttributes(Collection<? extends SignerIdentityAttributeValue> requestedSignerAttributes) -
clearRequestedSignerAttributes
-
extension
Extensions for the object.- Returns:
this
.
-
build
Description copied from interface:ObjectBuilder
Builds the object.- Specified by:
build
in interfaceObjectBuilder<AuthnRequirements>
- Returns:
- the object
-
toString
-