Package org.apache.sshd.common.cipher
Enum ECCurves.ECPointCompression
java.lang.Object
java.lang.Enum<ECCurves.ECPointCompression>
org.apache.sshd.common.cipher.ECCurves.ECPointCompression
- All Implemented Interfaces:
Serializable,Comparable<ECCurves.ECPointCompression>
- Enclosing class:
ECCurves
The various
ECPoint representation compression indicators- Author:
- Apache MINA SSHD Project
- See Also:
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyte[]ecPointToOctetString(String curveName, ECPoint p) static ECCurves.ECPointCompressionfromIndicatorValue(int value) final byteabstract ECPointoctetStringToEcPoint(byte[] octets, int startIndex, int len) static ECCurves.ECPointCompressionReturns the enum constant of this type with the specified name.static ECCurves.ECPointCompression[]values()Returns an array containing the constants of this enum type, in the order they are declared.protected voidwriteCoordinate(OutputStream s, String n, BigInteger v, int numElements) voidwriteECPoint(OutputStream s, String curveName, ECPoint p)
-
Enum Constant Details
-
VARIANT2
-
VARIANT3
-
UNCOMPRESSED
-
-
Field Details
-
VALUES
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getIndicatorValue
public final byte getIndicatorValue() -
octetStringToEcPoint
-
ecPointToOctetString
-
writeECPoint
- Throws:
IOException
-
writeCoordinate
protected void writeCoordinate(OutputStream s, String n, BigInteger v, int numElements) throws IOException - Throws:
IOException
-
fromIndicatorValue
-