Package io.netty.handler.ssl
Enum OpenSslCredential.CredentialType
- java.lang.Object
-
- java.lang.Enum<OpenSslCredential.CredentialType>
-
- io.netty.handler.ssl.OpenSslCredential.CredentialType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OpenSslCredential.CredentialType>
- Enclosing interface:
- OpenSslCredential
public static enum OpenSslCredential.CredentialType extends java.lang.Enum<OpenSslCredential.CredentialType>
The type of SSL credential.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpenSslCredential.CredentialTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OpenSslCredential.CredentialType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X509
public static final OpenSslCredential.CredentialType X509
Standard X.509 certificate credential created withSSL_CREDENTIAL_new_x509().
-
DELEGATED
public static final OpenSslCredential.CredentialType DELEGATED
Delegated credential created withSSL_CREDENTIAL_new_delegated().- See Also:
- RFC 9345 - Delegated Credentials for TLS
-
-
Method Detail
-
values
public static OpenSslCredential.CredentialType[] 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 (OpenSslCredential.CredentialType c : OpenSslCredential.CredentialType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenSslCredential.CredentialType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-