Enum CommitmentType

java.lang.Object
java.lang.Enum<CommitmentType>
eu.europa.esig.dss.enumerations.CommitmentType
All Implemented Interfaces:
OidBasedEnum, OidDescription, UriBasedEnum, Serializable, Comparable<CommitmentType>

public enum CommitmentType
extends Enum<CommitmentType>
implements UriBasedEnum, OidDescription
Defined in ETSI TS 119 172-1 Annex B
  • Enum Constant Details

    • ProofOfOrigin

      public static final CommitmentType ProofOfOrigin
      It indicates that the signer recognizes to have created, approved and sent the signed data.
    • ProofOfReceipt

      public static final CommitmentType ProofOfReceipt
      It indicates that signer recognizes to have received the content of the signed data.
    • ProofOfDelivery

      public static final CommitmentType ProofOfDelivery
      It indicates that the TSP providing that indication has delivered a signed data in a local store accessible to the recipient of the signed data.
    • ProofOfSender

      public static final CommitmentType ProofOfSender
      It indicates that the entity providing that indication has sent the signed data (but not necessarily created it).
    • ProofOfApproval

      public static final CommitmentType ProofOfApproval
      It indicates that the signer has approved the content of the signed data.
    • ProofOfCreation

      public static final CommitmentType ProofOfCreation
      It indicates that the signer has created the signed data (but not necessarily approved, nor sent it).
  • Method Details

    • values

      public static CommitmentType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CommitmentType valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getUri

      public String getUri()
      Specified by:
      getUri in interface UriBasedEnum
    • getOid

      public String getOid()
      Description copied from interface: OidBasedEnum
      This method returns the OID value
      Specified by:
      getOid in interface OidBasedEnum
      Returns:
      the OID value
    • getDescription

      public String getDescription()
      Description copied from interface: OidDescription
      This method returns the literal description of the OID
      Specified by:
      getDescription in interface OidDescription
      Returns:
      the OID description