Enum CertificateBuilder.ExtendedKeyUsage

java.lang.Object
java.lang.Enum<CertificateBuilder.ExtendedKeyUsage>
io.netty.pkitesting.CertificateBuilder.ExtendedKeyUsage
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CertificateBuilder.ExtendedKeyUsage>
Enclosing class:
CertificateBuilder

public static enum CertificateBuilder.ExtendedKeyUsage extends java.lang.Enum<CertificateBuilder.ExtendedKeyUsage>
The extended key usage field specify what the certificate and key is allowed to be used for.

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 Summary

    Enum Constants
    Enum Constant
    Description
    The certificate can be used for Kerberos client authentication.
    The certificate can be used for Microsoft smartcard logins.
    The certificate can be used on the client-side of a TLS connection.
    The certificate can be used for code signing.
    The certificate can be used for protecting email.
    The certificate can be used to sign OCSP replies.
    The certificate can be used on the server-side of a TLS connection.
    The certificate can be used for time-stamping.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final java.lang.String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    ExtendedKeyUsage(java.lang.String oid)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.String
     
    valueOf(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

    • oid

      private final java.lang.String oid
  • Constructor Details

    • ExtendedKeyUsage

      private ExtendedKeyUsage(java.lang.String oid)
  • Method Details

    • values

      public static CertificateBuilder.ExtendedKeyUsage[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CertificateBuilder.ExtendedKeyUsage 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 name
      java.lang.NullPointerException - if the argument is null
    • getOid

      public java.lang.String getOid()