Enum Class WireFormat

java.lang.Object
java.lang.Enum<WireFormat>
org.bouncycastle.mls.codec.WireFormat
All Implemented Interfaces:
Serializable, Comparable<WireFormat>, Constable, MLSInputStream.Readable, MLSOutputStream.Writable

public enum WireFormat extends Enum<WireFormat> implements MLSInputStream.Readable, MLSOutputStream.Writable
  • Enum Constant Details

    • RESERVED

      public static final WireFormat RESERVED
    • mls_public_message

      public static final WireFormat mls_public_message
    • mls_private_message

      public static final WireFormat mls_private_message
    • mls_welcome

      public static final WireFormat mls_welcome
    • mls_group_info

      public static final WireFormat mls_group_info
    • mls_key_package

      public static final WireFormat mls_key_package
  • Method Details

    • values

      public static WireFormat[] 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 WireFormat 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
    • writeTo

      public void writeTo(MLSOutputStream stream) throws IOException
      Specified by:
      writeTo in interface MLSOutputStream.Writable
      Throws:
      IOException