public static enum ECDSAPublicKeyEntryDecoder.ECPointCompression extends Enum<ECDSAPublicKeyEntryDecoder.ECPointCompression>
ECPoint
representation compression indicatorsEnum Constant and Description |
---|
UNCOMPRESSED |
VARIANT2 |
VARIANT3 |
Modifier and Type | Field and Description |
---|---|
static Set<ECDSAPublicKeyEntryDecoder.ECPointCompression> |
VALUES |
Modifier and Type | Method and Description |
---|---|
byte[] |
ecPointToOctetString(String curveName,
ECPoint p) |
static ECDSAPublicKeyEntryDecoder.ECPointCompression |
fromIndicatorValue(int value) |
byte |
getIndicatorValue() |
abstract ECPoint |
octetStringToEcPoint(byte[] octets,
int startIndex,
int len) |
static BigInteger |
octetStringToInteger(byte... octets)
Converts the given octet string (defined by ASN.1 specifications) to a
BigInteger
As octet strings always represent positive integers, a zero-byte is prepended to
the given array if necessary (if is MSB equal to 1), then this is converted to BigInteger
The conversion is defined in the Section 2.3.8 |
static ECDSAPublicKeyEntryDecoder.ECPointCompression |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECDSAPublicKeyEntryDecoder.ECPointCompression[] |
values()
Returns an array containing the constants of this enum type, 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) |
public static final ECDSAPublicKeyEntryDecoder.ECPointCompression VARIANT2
public static final ECDSAPublicKeyEntryDecoder.ECPointCompression VARIANT3
public static final ECDSAPublicKeyEntryDecoder.ECPointCompression UNCOMPRESSED
public static final Set<ECDSAPublicKeyEntryDecoder.ECPointCompression> VALUES
public static ECDSAPublicKeyEntryDecoder.ECPointCompression[] values()
for (ECDSAPublicKeyEntryDecoder.ECPointCompression c : ECDSAPublicKeyEntryDecoder.ECPointCompression.values()) System.out.println(c);
public static ECDSAPublicKeyEntryDecoder.ECPointCompression valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final byte getIndicatorValue()
public abstract ECPoint octetStringToEcPoint(byte[] octets, int startIndex, int len)
public void writeECPoint(OutputStream s, String curveName, ECPoint p) throws IOException
IOException
protected void writeCoordinate(OutputStream s, String n, BigInteger v, int numElements) throws IOException
IOException
public static ECDSAPublicKeyEntryDecoder.ECPointCompression fromIndicatorValue(int value)
public static BigInteger octetStringToInteger(byte... octets)
BigInteger
As octet strings always represent positive integers, a zero-byte is prepended to
the given array if necessary (if is MSB equal to 1), then this is converted to BigInteger
The conversion is defined in the Section 2.3.8octets
- - octet string bytes to be convertedBigInteger
representation of the octet stringCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.