Enum KeyAgreement

    • Enum Constant Detail

      • ECDHE

        public static final KeyAgreement ECDHE
        Ephemeral elliptic-curve Diffie-Hellman key agreement.
      • RSA

        public static final KeyAgreement RSA
        RSA key agreement.
      • DHr

        public static final KeyAgreement DHr
        Diffie-Hellman key agreement using RSA-signed keys.
      • DHd

        public static final KeyAgreement DHd
        Diffie-Hellman key agreement using DSS-signed keys.
      • DHE

        public static final KeyAgreement DHE
        Ephemeral Diffie-Hellman key agreement.
      • PSK

        public static final KeyAgreement PSK
        Pre-shared key ("PSK") key agreement.
      • FZA

        public static final KeyAgreement FZA
        Fortezza key agreement.
      • KRB5

        public static final KeyAgreement KRB5
        Kerberos V5 key agreement.
      • ECDHr

        public static final KeyAgreement ECDHr
        Elliptic-curve Diffie-Hellman ("ECDH") key agreement using RSA-signed keys.
      • ECDHe

        public static final KeyAgreement ECDHe
        Elliptic-curve Diffie-Hellman ("ECDH") key agreement using ECDH-signed keys.
      • SRP

        public static final KeyAgreement SRP
        Secure remote password ("SRP") key agreement as per RFC 5054.
      • RSAPSK

        public static final KeyAgreement RSAPSK
        RSA pre-shared key ("PSK") key agreement.
      • DHEPSK

        public static final KeyAgreement DHEPSK
        Ephemeral Diffie-Hellman pre-shared key ("PSK") key agreement.
      • ECDHEPSK

        public static final KeyAgreement ECDHEPSK
        RSA pre-shared key ("PSK") key agreement.
    • Method Detail

      • values

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

        public static KeyAgreement 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
      • isFull

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

        public boolean in​(KeyAgreement value1,
                          KeyAgreement 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​(KeyAgreement value1,
                          KeyAgreement value2,
                          KeyAgreement 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​(KeyAgreement... 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