Enum Class Authentication

java.lang.Object
java.lang.Enum<Authentication>
org.wildfly.security.ssl.Authentication
All Implemented Interfaces:
Serializable, Comparable<Authentication>, Constable

public enum Authentication extends Enum<Authentication>
The authentication type for SSL/TLS cipher suite selection.
Author:
David M. Lloyd
  • Enum Constant Details

    • NULL

      public static final Authentication NULL
      No authentication (the cipher suite is anonymous).
    • RSA

      public static final Authentication RSA
      RSA key-based authentication.
    • DSS

      public static final Authentication DSS
      DSS key-based authentication.
    • DH

      public static final Authentication DH
      Diffie-Hellman key-based authentication.
    • ECDH

      public static final Authentication ECDH
      Elliptic curve Diffie-Hellman key-based authentication.
    • KRB5

      public static final Authentication KRB5
      Kerberos V5 authentication.
    • ECDSA

      public static final Authentication ECDSA
      Elliptic curve DSA key-based authentication.
    • PSK

      public static final Authentication PSK
      Pre-shared key (PSK) based authentication.
    • GOST94

      public static final Authentication GOST94
      GOST R 34.10-94 authentication.
    • GOST01

      public static final Authentication GOST01
      GOST R 34.10-2001 authentication.
    • FZA

      public static final Authentication FZA
      Fortezza authentication.
  • Method Details

    • values

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

      public static Authentication valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isFull

      public static boolean isFull(EnumSet<Authentication> authentications)
      Determine whether the given set is "full" (meaning it contains all possible values).
      Parameters:
      authentications - the set
      Returns:
      true if the set is full, false otherwise
    • in

      public boolean in(Authentication value1, Authentication value2)
      Determine whether this instance is equal to one of the given instances.
      Parameters:
      value1 - the first instance
      value2 - the second instance
      Returns:
      true if one of the instances matches this one, false otherwise
    • in

      public boolean in(Authentication value1, Authentication value2, Authentication value3)
      Determine whether this instance is equal to one of the given instances.
      Parameters:
      value1 - the first instance
      value2 - the second instance
      value3 - the third instance
      Returns:
      true if one of the instances matches this one, false otherwise
    • in

      public boolean in(Authentication... values)
      Determine whether this instance is equal to one of the given instances.
      Parameters:
      values - the values to match against
      Returns:
      true if one of the instances matches this one, false otherwise