Enum Class ECCurves.ECPointCompression

java.lang.Object
java.lang.Enum<ECCurves.ECPointCompression>
org.apache.sshd.common.cipher.ECCurves.ECPointCompression
All Implemented Interfaces:
Serializable, Comparable<ECCurves.ECPointCompression>, Constable
Enclosing class:
ECCurves

public static enum ECCurves.ECPointCompression extends Enum<ECCurves.ECPointCompression>
The various ECPoint representation compression indicators
See Also:
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • ECPointCompression

      private ECPointCompression(byte indicator)
  • Method Details

    • values

      public static ECCurves.ECPointCompression[] 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 ECCurves.ECPointCompression 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
    • getIndicatorValue

      public final byte getIndicatorValue()
    • octetStringToEcPoint

      public abstract ECPoint octetStringToEcPoint(byte[] octets, int startIndex, int len)
    • ecPointToOctetString

      public byte[] ecPointToOctetString(String curveName, ECPoint p)
    • writeECPoint

      public void writeECPoint(OutputStream s, String curveName, ECPoint p) throws IOException
      Throws:
      IOException
    • writeCoordinate

      protected void writeCoordinate(OutputStream s, String n, BigInteger v, int numElements) throws IOException
      Throws:
      IOException
    • fromIndicatorValue

      public static ECCurves.ECPointCompression fromIndicatorValue(int value)