Class SignerAssertionInformation

java.lang.Object
se.idsec.signservice.integration.authentication.SignerAssertionInformation
All Implemented Interfaces:
Serializable, Extensible

public class SignerAssertionInformation extends Object implements 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:
  • Constructor Details

  • Method Details

    • getSignerAttributes

      public List<SignerIdentityAttributeValue> getSignerAttributes()
      Gets the identity attributes for the signer.
      Returns:
      the identity attributes for the signer
    • setSignerAttributes

      public void setSignerAttributes(List<SignerIdentityAttributeValue> signerAttributes)
      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

      public String getAuthnServiceID()
      Gets the entityID of the authentication service (Identity Provider) that will authenticated the signer as part of the signature process.
      Returns:
      the entityID of the authentication service that authenticated the signer
    • setAuthnServiceID

      public void setAuthnServiceID(String authnServiceID)
      Assigns the entityID of the authentication service (Identity Provider) that will authenticated the signer as part of the signature process.
      Parameters:
      authnServiceID - the entityID of the authentication service that authenticated the signer
    • getAuthnContextRef

      public String getAuthnContextRef()
      Gets the authentication context reference identifier (an 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

      public void setAuthnContextRef(String authnContextRef)
      Assigns the authentication context reference identifier (an 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

      public String 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

      public void setAuthnType(String authnType)
      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

      public String getAssertionReference()
      Gets the unique ID of the assertion issued for the user's "authentication for signature" operation. See also getAssertion().
      Returns:
      the assertion ID from the user authentication
    • setAssertionReference

      public void setAssertionReference(String assertionReference)
      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

      public String 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

      public void setAssertion(String assertion)
      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

      public Extension getExtension()
      Returns the extension parameters for the instance.
      Specified by:
      getExtension in interface Extensible
      Returns:
      the extension, or null if no extensions are set
    • setExtension

      public void setExtension(Extension extension)
      Assigns the extension parameters for the instance.
      Specified by:
      setExtension in interface Extensible
      Parameters:
      extension - the extension
    • builder

    • toString

      public String toString()
      Overrides:
      toString in class Object