Enum MessageMac.Hmac

java.lang.Object
java.lang.Enum<MessageMac.Hmac>
com.trilead.ssh2.crypto.digest.MessageMac.Hmac
All Implemented Interfaces:
Serializable, Comparable<MessageMac.Hmac>, java.lang.constant.Constable
Enclosing class:
MessageMac

private static enum MessageMac.Hmac extends Enum<MessageMac.Hmac>
  • Enum Constant Details

  • Field Details

    • type

      private String type
    • algorithm

      private String algorithm
    • length

      private int length
  • Constructor Details

    • Hmac

      private Hmac(String type, String algorithm, int length)
  • Method Details

    • values

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

      public static MessageMac.Hmac 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
    • getType

      public String getType()
    • getAlgorithm

      public String getAlgorithm()
    • getLength

      public int getLength()
    • getHmac

      private static MessageMac.Hmac getHmac(String type)