Enum X509CertificateBuilder.KeyUsage

    • Enum Constant Detail

      • DIGITAL_SIGNATURE

        public static final X509CertificateBuilder.KeyUsage DIGITAL_SIGNATURE
        Verify digital signatures other than signatures on certificates and certificate revocation lists.
      • NON_REPUDIATION

        public static final X509CertificateBuilder.KeyUsage NON_REPUDIATION
        Verify digital signatures other than signatures on certificates and certificate revocation lists, used to provide a non-repudiation service that protects against the signing entity falsely denying some action.
      • DATA_ENCIPHERMENT

        public static final X509CertificateBuilder.KeyUsage DATA_ENCIPHERMENT
        Direct enciphering of raw user data without the use of an intermediate symmetric cipher.
      • ENCIPHER_ONLY

        public static final X509CertificateBuilder.KeyUsage ENCIPHER_ONLY
        Indicates that the key may be used only for enciphering data while performing key agreement. Must be used in conjunction with KEY_AGREEMENT.
      • DECIPHER_ONLY

        public static final X509CertificateBuilder.KeyUsage DECIPHER_ONLY
        Indicates that the key may be used only for deciphering data while performing key agreement. Must be used in conjunction with KEY_AGREEMENT.
    • Method Detail

      • values

        public static X509CertificateBuilder.KeyUsage[] 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 (X509CertificateBuilder.KeyUsage c : X509CertificateBuilder.KeyUsage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static X509CertificateBuilder.KeyUsage valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null