Enum SigContext

java.lang.Object
java.lang.Enum<SigContext>
net.i2p.crypto.SigContext
All Implemented Interfaces:
Serializable, Comparable<SigContext>, java.lang.constant.Constable

public enum SigContext
extends Enum<SigContext>
Defines the context for signing with personalized hashes. See proposal 148.
Since:
0.9.40
  • Enum Constant Details

  • Method Details

    • values

      public static SigContext[] 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 SigContext 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
    • getSpec

      public SigContext.SigContextSpec getSpec()
      The AlgorithmParameterSpec. Pass this as an argument in setParameter() to the Blake sign/verify engines.