Enum SSLClientAuthPolicy

    • Enum Constant Detail

      • DISABLED

        public static final SSLClientAuthPolicy DISABLED
        Indicates that the server will not request a certificate from the client.
      • OPTIONAL

        public static final SSLClientAuthPolicy OPTIONAL
        Indicates that the server will request a certificate from the client but will not require that one be provided.
      • REQUIRED

        public static final SSLClientAuthPolicy REQUIRED
        Indicates that the server will request a certificate from the client and will reject any connection attempt in which the client did not provide one.
    • Method Detail

      • values

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

        public static SSLClientAuthPolicy 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
      • policyForName

        public static SSLClientAuthPolicy policyForName​(String policyName)
        Retrieves the SSL client authentication policy for the specified name.
        Parameters:
        policyName - The name of the SSL client authentication policy to retrieve.
        Returns:
        The requested SSL client authentication policy, or null if the provided value is not the name of a valid client authentication policy.
      • toString

        public String toString()
        Retrieves the human-readable name for this SSL client auth policy.
        Overrides:
        toString in class Enum<SSLClientAuthPolicy>
        Returns:
        The human-readable name for this SSL client auth policy.