Package com.google.crypto.tink.subtle
Enum EllipticCurves.PointFormatType
- java.lang.Object
-
- java.lang.Enum<EllipticCurves.PointFormatType>
-
- com.google.crypto.tink.subtle.EllipticCurves.PointFormatType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EllipticCurves.PointFormatType>
- Enclosing class:
- EllipticCurves
public static enum EllipticCurves.PointFormatType extends java.lang.Enum<EllipticCurves.PointFormatType>
Point format types UNCOMPRESSED and COMPRESSED are defined in https://www.secg.org/sec1-v2.pdf, Sections 2.3.3 and 2.3.4.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPRESSEDDO_NOT_USE_CRUNCHY_UNCOMPRESSEDUNCOMPRESSED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EllipticCurves.PointFormatTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EllipticCurves.PointFormatType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNCOMPRESSED
public static final EllipticCurves.PointFormatType UNCOMPRESSED
-
COMPRESSED
public static final EllipticCurves.PointFormatType COMPRESSED
-
DO_NOT_USE_CRUNCHY_UNCOMPRESSED
public static final EllipticCurves.PointFormatType DO_NOT_USE_CRUNCHY_UNCOMPRESSED
-
-
Method Detail
-
values
public static EllipticCurves.PointFormatType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EllipticCurves.PointFormatType c : EllipticCurves.PointFormatType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EllipticCurves.PointFormatType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-