public static enum CertificateBuilder.ExtendedKeyUsage extends Enum<CertificateBuilder.ExtendedKeyUsage>
A certificate can have many key usages. For instance, some certificates support both client and server usage for TLS connections.
The key usage must be checked by the opposing peer receiving the certificate, and reject certificates that do not permit the given usage.
For instance, if a TLS client connects to a server that presents a certificate without the server-authentication usage, then the client must reject the server certificate as invalid.
| Enum Constant and Description |
|---|
KERBEROS_KEY_PURPOSE_CLIENT_AUTH
The certificate can be used for Kerberos client authentication.
|
MICROSOFT_SMARTCARD_LOGIN
The certificate can be used for Microsoft smartcard logins.
|
PKIX_KP_CLIENT_AUTH
The certificate can be used on the client-side of a TLS connection.
|
PKIX_KP_CODE_SIGNING
The certificate can be used for code signing.
|
PKIX_KP_EMAIL_PROTECTION
The certificate can be used for protecting email.
|
PKIX_KP_OCSP_SIGNING
The certificate can be used to sign OCSP replies.
|
PKIX_KP_SERVER_AUTH
The certificate can be used on the server-side of a TLS connection.
|
PKIX_KP_TIME_STAMPING
The certificate can be used for time-stamping.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOid() |
static CertificateBuilder.ExtendedKeyUsage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CertificateBuilder.ExtendedKeyUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CertificateBuilder.ExtendedKeyUsage PKIX_KP_SERVER_AUTH
public static final CertificateBuilder.ExtendedKeyUsage PKIX_KP_CLIENT_AUTH
public static final CertificateBuilder.ExtendedKeyUsage PKIX_KP_CODE_SIGNING
public static final CertificateBuilder.ExtendedKeyUsage PKIX_KP_EMAIL_PROTECTION
public static final CertificateBuilder.ExtendedKeyUsage PKIX_KP_TIME_STAMPING
public static final CertificateBuilder.ExtendedKeyUsage PKIX_KP_OCSP_SIGNING
public static final CertificateBuilder.ExtendedKeyUsage KERBEROS_KEY_PURPOSE_CLIENT_AUTH
public static final CertificateBuilder.ExtendedKeyUsage MICROSOFT_SMARTCARD_LOGIN
public static CertificateBuilder.ExtendedKeyUsage[] values()
for (CertificateBuilder.ExtendedKeyUsage c : CertificateBuilder.ExtendedKeyUsage.values()) System.out.println(c);
public static CertificateBuilder.ExtendedKeyUsage valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getOid()
Copyright © 2008–2024 The Netty Project. All rights reserved.