Package eu.europa.esig.dss.enumerations
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 Summary
Enum Constants Enum Constant Description ProofOfApprovalIt indicates that the signer has approved the content of the signed data.ProofOfCreationIt indicates that the signer has created the signed data (but not necessarily approved, nor sent it).ProofOfDeliveryIt indicates that the TSP providing that indication has delivered a signed data in a local store accessible to the recipient of the signed data.ProofOfOriginIt indicates that the signer recognizes to have created, approved and sent the signed data.ProofOfReceiptIt indicates that signer recognizes to have received the content of the signed data.ProofOfSenderIt indicates that the entity providing that indication has sent the signed data (but not necessarily created it).
-
Method Summary
Modifier and Type Method Description StringgetDescription()This method returns the literal description of the OIDStringgetOid()This method returns the OID valueStringgetUri()static CommitmentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CommitmentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
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 nameNullPointerException- if the argument is null
-
getUri
public String getUri()
- Specified by:
getUriin interfaceUriBasedEnum
-
getOid
public String getOid()
Description copied from interface:OidBasedEnumThis method returns the OID value- Specified by:
getOidin interfaceOidBasedEnum- Returns:
- the OID value
-
getDescription
public String getDescription()
Description copied from interface:OidDescriptionThis method returns the literal description of the OID- Specified by:
getDescriptionin interfaceOidDescription- Returns:
- the OID description
-
-