init
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tomcat.util.net.openssl.ciphers;
|
||||
|
||||
public enum Authentication {
|
||||
RSA /* RSA auth */,
|
||||
DSS /* DSS auth */,
|
||||
aNULL /* no auth (i.e. use ADH or AECDH) */,
|
||||
DH /* Fixed DH auth (kDHd or kDHr) */,
|
||||
ECDH /* Fixed ECDH auth (kECDHe or kECDHr) */,
|
||||
KRB5 /* KRB5 auth */,
|
||||
ECDSA /* ECDSA auth*/,
|
||||
PSK /* PSK auth */,
|
||||
GOST94 /* GOST R 34.10-94 signature auth */,
|
||||
GOST01 /* GOST R 34.10-2001 */,
|
||||
FZA /* Fortezza */,
|
||||
SRP,
|
||||
ANY /* TLS 1.3 */
|
||||
}
|
||||
5119
java/org/apache/tomcat/util/net/openssl/ciphers/Cipher.java
Normal file
5119
java/org/apache/tomcat/util/net/openssl/ciphers/Cipher.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tomcat.util.net.openssl.ciphers;
|
||||
|
||||
enum Encryption {
|
||||
AES128,
|
||||
AES128CCM,
|
||||
AES128CCM8,
|
||||
AES128GCM,
|
||||
AES256,
|
||||
AES256CCM,
|
||||
AES256CCM8,
|
||||
AES256GCM,
|
||||
ARIA128GCM,
|
||||
ARIA256GCM,
|
||||
CAMELLIA256,
|
||||
CAMELLIA128,
|
||||
CHACHA20POLY1305,
|
||||
TRIPLE_DES,
|
||||
DES,
|
||||
IDEA,
|
||||
eGOST2814789CNT,
|
||||
SEED,
|
||||
FZA,
|
||||
RC4,
|
||||
RC2,
|
||||
eNULL
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tomcat.util.net.openssl.ciphers;
|
||||
|
||||
enum EncryptionLevel {
|
||||
STRONG_NONE,
|
||||
EXP40,
|
||||
EXP56,
|
||||
LOW,
|
||||
MEDIUM,
|
||||
HIGH,
|
||||
FIPS
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tomcat.util.net.openssl.ciphers;
|
||||
|
||||
enum KeyExchange {
|
||||
EECDH /* SSL_kEECDH - ephemeral ECDH */,
|
||||
RSA /* SSL_kRSA - RSA key exchange */,
|
||||
DHr /* SSL_kDHr - DH cert, RSA CA cert */ /* no such ciphersuites supported! */,
|
||||
DHd /* SSL_kDHd - DH cert, DSA CA cert */ /* no such ciphersuite supported! */,
|
||||
EDH /* SSL_kDHE - tmp DH key no DH cert */,
|
||||
PSK /* SSK_kPSK - PSK */,
|
||||
FZA /* SSL_kFZA - Fortezza */ /* no such ciphersuite supported! */,
|
||||
KRB5 /* SSL_kKRB5 - Kerberos 5 key exchange */,
|
||||
ECDHr /* SSL_kECDHr - ECDH cert, RSA CA cert */,
|
||||
ECDHe /* SSL_kECDHe - ECDH cert, ECDSA CA cert */,
|
||||
GOST /* SSL_kGOST - GOST key exchange */,
|
||||
SRP /* SSL_kSRP - SRP */,
|
||||
RSAPSK,
|
||||
ECDHEPSK,
|
||||
DHEPSK,
|
||||
ANY /* TLS 1.3 */
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
converter.mapping=Cipher suite mapping: [{0}] => [{1}]
|
||||
@@ -0,0 +1,16 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
converter.mapping=Association de la suite de chiffres: [{0}] => [{1}]
|
||||
@@ -0,0 +1,16 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
converter.mapping=暗号スイートの対応付け: [{0}] => [{1}]
|
||||
@@ -0,0 +1,16 @@
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
converter.mapping=Cipher suite 매핑: [{0}] => [{1}]
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tomcat.util.net.openssl.ciphers;
|
||||
|
||||
enum MessageDigest {
|
||||
MD5,
|
||||
SHA1,
|
||||
GOST94,
|
||||
GOST89MAC,
|
||||
SHA256,
|
||||
SHA384,
|
||||
AEAD
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.tomcat.util.net.openssl.ciphers;
|
||||
|
||||
import org.apache.tomcat.util.net.Constants;
|
||||
|
||||
enum Protocol {
|
||||
|
||||
SSLv3(Constants.SSL_PROTO_SSLv3),
|
||||
SSLv2(Constants.SSL_PROTO_SSLv2),
|
||||
TLSv1(Constants.SSL_PROTO_TLSv1),
|
||||
TLSv1_2(Constants.SSL_PROTO_TLSv1_2),
|
||||
TLSv1_3(Constants.SSL_PROTO_TLSv1_3);
|
||||
|
||||
private final String openSSLName;
|
||||
|
||||
private Protocol(String openSSLName) {
|
||||
this.openSSLName = openSSLName;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name returned by OpenSSL in the protocol column when using
|
||||
* <code>openssl ciphers -v</code>. This is currently only used by the unit
|
||||
* tests hence it is package private.
|
||||
*/
|
||||
String getOpenSSLName() {
|
||||
return openSSLName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user