Package eu.europa.esig.dss.enumerations
Enum CommitmentTypeEnum
- java.lang.Object
-
- java.lang.Enum<CommitmentTypeEnum>
-
- eu.europa.esig.dss.enumerations.CommitmentTypeEnum
-
- All Implemented Interfaces:
CommitmentType,ObjectIdentifier,OidAndUriBasedEnum,OidBasedEnum,OidDescription,UriBasedEnum,Serializable,Comparable<CommitmentTypeEnum>
public enum CommitmentTypeEnum extends Enum<CommitmentTypeEnum> implements CommitmentType
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()This method returns the literal description of the OIDString[]getDocumentationReferences()Returns a list of URI-based references NOTE: used in XAdESStringgetOid()This method returns the OID valueObjectIdentifierQualifiergetQualifier()Returns Object Identifier QualifierStringgetUri()Returns a URIstatic CommitmentTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static CommitmentTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ProofOfOrigin
public static final CommitmentTypeEnum ProofOfOrigin
It indicates that the signer recognizes to have created, approved and sent the signed data.
-
ProofOfReceipt
public static final CommitmentTypeEnum ProofOfReceipt
It indicates that signer recognizes to have received the content of the signed data.
-
ProofOfDelivery
public static final CommitmentTypeEnum 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 CommitmentTypeEnum ProofOfSender
It indicates that the entity providing that indication has sent the signed data (but not necessarily created it).
-
ProofOfApproval
public static final CommitmentTypeEnum ProofOfApproval
It indicates that the signer has approved the content of the signed data.
-
ProofOfCreation
public static final CommitmentTypeEnum ProofOfCreation
It indicates that the signer has created the signed data (but not necessarily approved, nor sent it).
-
-
Method Detail
-
values
public static CommitmentTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommitmentTypeEnum c : CommitmentTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommitmentTypeEnum 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()
Description copied from interface:UriBasedEnumReturns a URI- Specified by:
getUriin interfaceUriBasedEnum- Returns:
String
-
getOid
public String getOid()
Description copied from interface:OidBasedEnumThis method returns the OID value- Specified by:
getOidin interfaceOidBasedEnum- Returns:
- the OID value
-
getQualifier
public ObjectIdentifierQualifier getQualifier()
Description copied from interface:ObjectIdentifierReturns Object Identifier Qualifier- Specified by:
getQualifierin interfaceObjectIdentifier- Returns:
ObjectIdentifierQualifier
-
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
-
getDocumentationReferences
public String[] getDocumentationReferences()
Description copied from interface:ObjectIdentifierReturns a list of URI-based references NOTE: used in XAdES- Specified by:
getDocumentationReferencesin interfaceObjectIdentifier- Returns:
- an array of URI
Stringreferences
-
-