Enum CertificateBuilder.KeyUsage

    • Enum Constant Detail

      • digitalSignature

        public static final CertificateBuilder.KeyUsage digitalSignature
        For verifying digital signatures, for entity authentication, for entity authentication, or for integrity verification.
      • contentCommitment

        public static final CertificateBuilder.KeyUsage contentCommitment
        This key usage is deprecated by X.509, and commitment may instead be derived from the actual use of the keys.

        For verifying digital signatures that imply the signer has "committed" to the content being signed. This does not imply any specific policy or review on part of the signer, however.

      • dataEncipherment

        public static final CertificateBuilder.KeyUsage dataEncipherment
        For enciphering user data, but not keys or security information.
    • Method Detail

      • values

        public static CertificateBuilder.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 (CertificateBuilder.KeyUsage c : CertificateBuilder.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 CertificateBuilder.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