Package org.apache.sshd.common.cipher
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
The various
ECPoint
representation compression indicators- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte
static final Set<ECCurves.ECPointCompression>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
ecPointToOctetString
(String curveName, ECPoint p) static ECCurves.ECPointCompression
fromIndicatorValue
(int value) final byte
abstract ECPoint
octetStringToEcPoint
(byte[] octets, int startIndex, int len) static ECCurves.ECPointCompression
Returns the enum constant of this class with the specified name.static ECCurves.ECPointCompression[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.protected void
writeCoordinate
(OutputStream s, String n, BigInteger v, int numElements) void
writeECPoint
(OutputStream s, String curveName, ECPoint p)
-
Enum Constant Details
-
VARIANT2
-
VARIANT3
-
UNCOMPRESSED
-
-
Field Details
-
VALUES
-
indicatorValue
private final byte indicatorValue
-
-
Constructor Details
-
ECPointCompression
private ECPointCompression(byte indicator)
-
-
Method Details
-
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
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 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
-