|
1 | 1 | package com.adyen.model.nexo; |
2 | 2 |
|
| 3 | +import com.google.gson.annotations.SerializedName; |
3 | 4 | import java.util.Arrays; |
4 | | -import javax.xml.bind.annotation.XmlEnum; |
5 | | -import javax.xml.bind.annotation.XmlEnumValue; |
6 | | -import javax.xml.bind.annotation.XmlType; |
7 | 5 |
|
8 | 6 | /** |
9 | 7 | * Java class for AlgorithmType. |
|
26 | 24 | * </simpleType> |
27 | 25 | * </pre> |
28 | 26 | */ |
29 | | -@XmlType(name = "AlgorithmType") |
30 | | -@XmlEnum |
31 | 27 | public enum AlgorithmType { |
32 | 28 |
|
33 | 29 | /** |
34 | 30 | * Retail CBC-MAC (cf. ISO 9807, ANSI X9.19) - (OID: iso(1) member-body(2) fr(250) type-org (1) |
35 | 31 | * gie-cb(79) algorithm(10) epas(1) 2) |
36 | 32 | */ |
37 | | - @XmlEnumValue("id-retail-cbc-mac") |
| 33 | + @SerializedName("id-retail-cbc-mac") |
38 | 34 | ID_RETAIL_CBC_MAC("id-retail-cbc-mac"), |
39 | 35 |
|
40 | 36 | /** |
41 | 37 | * Retail-CBC-MAC with SHA-256 - (OID: iso(1) member-body(2) fr(250) type-org (1) gie-cb(79) |
42 | 38 | * algorithm(10) epas(1) 3) |
43 | 39 | */ |
44 | | - @XmlEnumValue("id-retail-cbc-mac-sha-256") |
| 40 | + @SerializedName("id-retail-cbc-mac-sha-256") |
45 | 41 | ID_RETAIL_CBC_MAC_SHA_256("id-retail-cbc-mac-sha-256"), |
46 | 42 |
|
47 | 43 | /** |
48 | 44 | * The UKPT or Master Session Key key encryption - (OID: iso(1) member-body(2) fr(250) type-org |
49 | 45 | * (1) gie-cb(79) algorithm(10) epas(1) 4) |
50 | 46 | */ |
51 | | - @XmlEnumValue("id-ukpt-wrap ") |
| 47 | + @SerializedName("id-ukpt-wrap ") |
52 | 48 | ID_UKPT_WRAP("id-ukpt-wrap "), |
53 | 49 |
|
54 | 50 | /** |
55 | 51 | * DUKPT is specified in ANS X9.24-2004, Annex A, and ISO/DIS 13492-2006. - (OID: iso(1) |
56 | 52 | * member-body(2) fr(250) type-org (1) gie-cb(79) algorithm(10) epas(1) 1) |
57 | 53 | */ |
58 | | - @XmlEnumValue("id-dukpt-wrap") |
| 54 | + @SerializedName("id-dukpt-wrap") |
59 | 55 | ID_DUKPT_WRAP("id-dukpt-wrap"), |
60 | 56 |
|
61 | 57 | /** |
62 | 58 | * Triple DES ECB encryption with double length key (112 Bit) as defined in FIPS PUB 46-3 - (OID: |
63 | 59 | * iso(1) member-body(2) fr(250) type-org (1) gie-cb(79) |
64 | 60 | */ |
65 | | - @XmlEnumValue("des-ede3-ecb") |
| 61 | + @SerializedName("des-ede3-ecb") |
66 | 62 | DES_EDE_3_ECB("des-ede3-ecb"), |
67 | 63 |
|
68 | 64 | /** |
69 | 65 | * Triple DES CBC encryption with double length key (112 Bit) as defined in FIPS PUB 46-3 - (OID: |
70 | 66 | * iso(1) member-body(2) us(840) rsadsi(113549) |
71 | 67 | */ |
72 | | - @XmlEnumValue("des-ede3-cbc") |
| 68 | + @SerializedName("des-ede3-cbc") |
73 | 69 | DES_EDE_3_CBC("des-ede3-cbc"), |
74 | 70 |
|
75 | 71 | /** Message Digest Algorithm SHA-256 as defined in FIPS 180-1 and 2 - (ISO20022 Label: SHA256) */ |
76 | | - @XmlEnumValue("id-sha256") |
| 72 | + @SerializedName("id-sha256") |
77 | 73 | ID_SHA_256("id-sha256"), |
78 | 74 |
|
79 | 75 | /** |
80 | 76 | * Signature Algorithms SHA-256 with RSA - (OID: iso(1) member-body(2) us(840) rsadsi(113549) |
81 | 77 | * pkcs(1) pkcs-1(1) 11) |
82 | 78 | */ |
83 | | - @XmlEnumValue("sha256WithRSAEncryption") |
| 79 | + @SerializedName("sha256WithRSAEncryption") |
84 | 80 | SHA_256_WITH_RSA_ENCRYPTION("sha256WithRSAEncryption"), |
85 | 81 |
|
86 | 82 | /** |
87 | 83 | * Key Transport Algorithm RSA - (OID: iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) |
88 | 84 | * pkcs-1(1) 1) |
89 | 85 | */ |
90 | | - @XmlEnumValue("rsaEncryption") |
| 86 | + @SerializedName("rsaEncryption") |
91 | 87 | RSA_ENCRYPTION("rsaEncryption"); |
92 | 88 | private final String value; |
93 | 89 |
|
|
0 commit comments