1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.common.lib.types;
20
21 public enum XmlSecAlgorithm {
22
23
24
25
26 TRIPLEDES("http://www.w3.org/2001/04/xmlenc#tripledes-cbc"),
27
28
29
30
31 AES_128("http://www.w3.org/2001/04/xmlenc#aes128-cbc"),
32
33
34
35
36 AES_256("http://www.w3.org/2001/04/xmlenc#aes256-cbc"),
37
38
39
40
41 AES_192("http://www.w3.org/2001/04/xmlenc#aes192-cbc"),
42
43
44
45
46 AES_128_GCM("http://www.w3.org/2009/xmlenc11#aes128-gcm"),
47
48
49
50
51 AES_192_GCM("http://www.w3.org/2009/xmlenc11#aes192-gcm"),
52
53
54
55
56 AES_256_GCM("http://www.w3.org/2009/xmlenc11#aes256-gcm"),
57
58
59
60
61 SEED_128("http://www.w3.org/2007/05/xmldsig-more#seed128-cbc"),
62
63
64
65
66 CAMELLIA_128("http://www.w3.org/2001/04/xmldsig-more#camellia128-cbc"),
67
68
69
70
71 CAMELLIA_192("http://www.w3.org/2001/04/xmldsig-more#camellia192-cbc"),
72
73
74
75
76 CAMELLIA_256("http://www.w3.org/2001/04/xmldsig-more#camellia256-cbc"),
77
78
79
80
81 RSA_v1dot5("http://www.w3.org/2001/04/xmlenc#rsa-1_5"),
82
83
84
85
86 RSA_OAEP("http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"),
87
88
89
90
91 RSA_OAEP_11("http://www.w3.org/2009/xmlenc11#rsa-oaep"),
92
93
94
95
96 DIFFIE_HELLMAN("http://www.w3.org/2001/04/xmlenc#dh"),
97
98
99
100
101 TRIPLEDES_KeyWrap("http://www.w3.org/2001/04/xmlenc#kw-tripledes"),
102
103
104
105
106 AES_128_KeyWrap("http://www.w3.org/2001/04/xmlenc#kw-aes128"),
107
108
109
110
111 AES_256_KeyWrap("http://www.w3.org/2001/04/xmlenc#kw-aes256"),
112
113
114
115
116 AES_192_KeyWrap("http://www.w3.org/2001/04/xmlenc#kw-aes192"),
117
118
119
120
121 CAMELLIA_128_KeyWrap("http://www.w3.org/2001/04/xmldsig-more#kw-camellia128"),
122
123
124
125
126 CAMELLIA_192_KeyWrap("http://www.w3.org/2001/04/xmldsig-more#kw-camellia192"),
127
128
129
130
131 CAMELLIA_256_KeyWrap("http://www.w3.org/2001/04/xmldsig-more#kw-camellia256"),
132
133
134
135
136 SEED_128_KeyWrap("http://www.w3.org/2007/05/xmldsig-more#kw-seed128"),
137
138
139
140
141 SHA1("http://www.w3.org/2000/09/xmldsig#sha1"),
142
143
144
145
146 SHA256("http://www.w3.org/2001/04/xmlenc#sha256"),
147
148
149
150
151 SHA512("http://www.w3.org/2001/04/xmlenc#sha512"),
152
153
154
155
156 RIPEMD_160("http://www.w3.org/2001/04/xmlenc#ripemd160");
157
158 private final String algorithm;
159
160 XmlSecAlgorithm(final String uri) {
161 this.algorithm = uri;
162 }
163
164 public String getAlgorithm() {
165 return algorithm;
166 }
167 }