Package com.adyen.model.nexo
Enum ContentType
- java.lang.Object
-
- java.lang.Enum<ContentType>
-
- com.adyen.model.nexo.ContentType
-
- All Implemented Interfaces:
Serializable,Comparable<ContentType>
public enum ContentType extends Enum<ContentType>
Java class for ContentType.The following schema fragment specifies the expected content contained within this class.
<simpleType name="ContentType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="id-data"/> <enumeration value="id-signedData"/> <enumeration value="id-envelopedData"/> <enumeration value="id-digestedData"/> <enumeration value="id-encryptedData"/> <enumeration value="id-ct-authData"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ID_CT_AUTH_DATAMAC CMS data content, with encryption key - (OID: iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) ct(1) 2)ID_DATAGeneric, non cryptographic, or unqualified data content - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 1)ID_DIGESTED_DATAMessage digest CMS data content - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 5)ID_ENCRYPTED_DATAEncrypted CMS data content - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 6)ID_ENVELOPED_DATAEncrypted CMS data content, with encryption key - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 3)ID_SIGNED_DATASignature CMS data content - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentTypefromValue(String v)Returns the enum constant matching the given string, ornullif no match is found.Stringvalue()Value string.static ContentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ID_DATA
@SerializedName("id-data") public static final ContentType ID_DATAGeneric, non cryptographic, or unqualified data content - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 1)
-
ID_SIGNED_DATA
@SerializedName("id-signedData") public static final ContentType ID_SIGNED_DATASignature CMS data content - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2)
-
ID_ENVELOPED_DATA
@SerializedName("id-envelopedData") public static final ContentType ID_ENVELOPED_DATAEncrypted CMS data content, with encryption key - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 3)
-
ID_DIGESTED_DATA
@SerializedName("id-digestedData") public static final ContentType ID_DIGESTED_DATAMessage digest CMS data content - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 5)
-
ID_ENCRYPTED_DATA
@SerializedName("id-encryptedData") public static final ContentType ID_ENCRYPTED_DATAEncrypted CMS data content - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs7(7) 6)
-
ID_CT_AUTH_DATA
@SerializedName("id-ct-authData") public static final ContentType ID_CT_AUTH_DATAMAC CMS data content, with encryption key - (OID: iso(1) member- body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) ct(1) 2)
-
-
Method Detail
-
values
public static ContentType[] 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 (ContentType c : ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentType 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
-
value
public String value()
Value string.- Returns:
- the string
-
fromValue
public static ContentType fromValue(String v)
Returns the enum constant matching the given string, ornullif no match is found.- Parameters:
v- string value- Returns:
- the ContentType, or
nullif no match is found.
-
-