Class SignerAssertionInformation
java.lang.Object
se.idsec.signservice.integration.authentication.SignerAssertionInformation
- All Implemented Interfaces:
Serializable
,Extensible
A representation of the assertion info for the signer's "authentication for signature" that was performed during a
signature operation.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder forSignerAssertionInformation
objects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the assertion issued for the user's "authentication for signature" operation (in Base64 encoded format).Gets the unique ID of the assertion issued for the user's "authentication for signature" operation.Gets the authentication context reference identifier (a URI) that identifies the context under which the signer was authenticated.long
Gets the time (in millis since epoch) when the SignService authenticated the signer.Gets the entityID of the authentication service (Identity Provider) that will authenticate the signer as part of the signature process.Gets the identifier for the type of authentication that was used for the "authentication for signature" operation, e.g.Returns the extension parameters for the instance.Gets the identity attributes for the signer.void
setAssertion
(String assertion) Assigns the assertion issued for the user's "authentication for signature" operation (in Base64 encoded format).void
setAssertionReference
(String assertionReference) Assigns the unique ID of the assertion issued for the user's "authentication for signature" operation.void
setAuthnContextRef
(String authnContextRef) Assigns the authentication context reference identifier (a URI) that identifies the context under which the signer was authenticated.void
setAuthnInstant
(long authnInstant) Assigns the time (in millis since epoch) when the SignService authenticated the signer.void
setAuthnServiceID
(String authnServiceID) Assigns the entityID of the authentication service (Identity Provider) that will authenticate the signer as part of the signature process.void
setAuthnType
(String authnType) Assigns the identifier for the type of authentication that was used for the "authentication for signature" operation, e.g.void
setExtension
(Extension extension) Assigns the extension parameters for the instance.void
setSignerAttributes
(List<SignerIdentityAttributeValue> signerAttributes) Assigns the identity attributes for the signer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.idsec.signservice.integration.core.Extensible
addExtensionValue, getExtensionValue
-
Constructor Details
-
SignerAssertionInformation
public SignerAssertionInformation()Constructor.
-
-
Method Details
-
getSignerAttributes
Gets the identity attributes for the signer.- Returns:
- the identity attributes for the signer
-
setSignerAttributes
Assigns the identity attributes for the signer.- Parameters:
signerAttributes
- the identity attributes for the signer
-
getAuthnInstant
public long getAuthnInstant()Gets the time (in millis since epoch) when the SignService authenticated the signer.- Returns:
- the authentication instant
-
setAuthnInstant
public void setAuthnInstant(long authnInstant) Assigns the time (in millis since epoch) when the SignService authenticated the signer.- Parameters:
authnInstant
- the authentication instant
-
getAuthnServiceID
Gets the entityID of the authentication service (Identity Provider) that will authenticate the signer as part of the signature process.- Returns:
- the entityID of the authentication service that authenticated the signer
-
setAuthnServiceID
Assigns the entityID of the authentication service (Identity Provider) that will authenticate the signer as part of the signature process.- Parameters:
authnServiceID
- the entityID of the authentication service that authenticated the signer
-
getAuthnContextRef
Gets the authentication context reference identifier (a URI) that identifies the context under which the signer was authenticated. This identifier is often referred to as the "level of assurance" (LoA).- Returns:
- the authentication context reference URI
-
setAuthnContextRef
Assigns the authentication context reference identifier (a URI) that identifies the context under which the signer was authenticated. This identifier is often referred to as the "level of assurance" (LoA).- Parameters:
authnContextRef
- the authentication context reference URI
-
getAuthnType
Gets the identifier for the type of authentication that was used for the "authentication for signature" operation, e.g. "saml".- Returns:
- the authentication type, or
null
if not set
-
setAuthnType
Assigns the identifier for the type of authentication that was used for the "authentication for signature" operation, e.g. "saml".- Parameters:
authnType
- authentication type
-
getAssertionReference
Gets the unique ID of the assertion issued for the user's "authentication for signature" operation. See alsogetAssertion()
.- Returns:
- the assertion ID from the user authentication
-
setAssertionReference
Assigns the unique ID of the assertion issued for the user's "authentication for signature" operation.- Parameters:
assertionReference
- the assertion ID from the user authentication
-
getAssertion
Gets the assertion issued for the user's "authentication for signature" operation (in Base64 encoded format).This is only available if the assertion was passed back in the SignResponse from the SignService.
- Returns:
- the assertion from the user authentication or
null
-
setAssertion
Assigns the assertion issued for the user's "authentication for signature" operation (in Base64 encoded format).- Parameters:
assertion
- the assertion from the user authentication
-
getExtension
Returns the extension parameters for the instance.- Specified by:
getExtension
in interfaceExtensible
- Returns:
- the extension, or
null
if no extensions are set
-
setExtension
Assigns the extension parameters for the instance.- Specified by:
setExtension
in interfaceExtensible
- Parameters:
extension
- the extension
-