Package eu.europa.esig.dss.enumerations
Enum 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 ProofOfApproval
It indicates that the signer has approved the content of the signed data.ProofOfCreation
It indicates that the signer has created the signed data (but not necessarily approved, nor sent it).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.ProofOfOrigin
It indicates that the signer recognizes to have created, approved and sent the signed data.ProofOfReceipt
It indicates that signer recognizes to have received the content of the signed data.ProofOfSender
It indicates that the entity providing that indication has sent the signed data (but not necessarily created it). -
Method Summary
Modifier and Type Method Description String
getDescription()
This method returns the literal description of the OIDString
getOid()
This method returns the OID valueString
getUri()
static CommitmentType
valueOf(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 Details
-
ProofOfOrigin
It indicates that the signer recognizes to have created, approved and sent the signed data. -
ProofOfReceipt
It indicates that signer recognizes to have received the content of the signed data. -
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
It indicates that the entity providing that indication has sent the signed data (but not necessarily created it). -
ProofOfApproval
It indicates that the signer has approved the content of the signed data. -
ProofOfCreation
It indicates that the signer has created the signed data (but not necessarily approved, nor sent it).
-
-
Method Details
-
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
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
- Specified by:
getUri
in interfaceUriBasedEnum
-
getOid
Description copied from interface:OidBasedEnum
This method returns the OID value- Specified by:
getOid
in interfaceOidBasedEnum
- Returns:
- the OID value
-
getDescription
Description copied from interface:OidDescription
This method returns the literal description of the OID- Specified by:
getDescription
in interfaceOidDescription
- Returns:
- the OID description
-