Serializable, Key, PublicKey, EdDSAKeypublic class EdDSAPublicKey extends Object implements EdDSAKey, PublicKey
Warning: Public key encoding is is based on the current IETF draft, and is subject to change. See getEncoded().
Ref: https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-04
| Constructor | Description |
|---|---|
EdDSAPublicKey(X509EncodedKeySpec spec) |
|
EdDSAPublicKey(EdDSAPublicKeySpec spec) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object o) |
|
GroupElement |
getA() |
|
byte[] |
getAbyte() |
|
String |
getAlgorithm() |
|
byte[] |
getEncoded() |
This follows the spec at
ref: https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-04
which matches the docs from
java.security.spec.X509EncodedKeySpec
quote:
|
String |
getFormat() |
|
GroupElement |
getNegativeA() |
|
EdDSAParameterSpec |
getParams() |
return a parameter specification representing the EdDSA domain
parameters for the key.
|
int |
hashCode() |
public EdDSAPublicKey(EdDSAPublicKeySpec spec)
public EdDSAPublicKey(X509EncodedKeySpec spec) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic String getAlgorithm()
getAlgorithm in interface Keypublic byte[] getEncoded()
The SubjectPublicKeyInfo syntax is defined in the X.509 standard as follows:
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
subjectPublicKey BIT STRING }
AlgorithmIdentifier ::= SEQUENCE
{
algorithm OBJECT IDENTIFIER,
parameters ANY OPTIONAL
}
getEncoded in interface Keypublic EdDSAParameterSpec getParams()
EdDSAKeypublic GroupElement getA()
public GroupElement getNegativeA()
public byte[] getAbyte()