java.io.Serializable
, java.security.Key
, java.security.PublicKey
, EdDSAKey
public class EdDSAPublicKey extends java.lang.Object implements EdDSAKey, java.security.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
コンストラクタ | 説明 |
---|---|
EdDSAPublicKey(java.security.spec.X509EncodedKeySpec spec) |
|
EdDSAPublicKey(EdDSAPublicKeySpec spec) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
GroupElement |
getA() |
|
byte[] |
getAbyte() |
|
java.lang.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:
|
java.lang.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(java.security.spec.X509EncodedKeySpec spec) throws java.security.spec.InvalidKeySpecException
java.security.spec.InvalidKeySpecException
public java.lang.String getAlgorithm()
getAlgorithm
インタフェース内 java.security.Key
public java.lang.String getFormat()
getFormat
インタフェース内 java.security.Key
public 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
インタフェース内 java.security.Key
public EdDSAParameterSpec getParams()
EdDSAKey
public GroupElement getA()
public GroupElement getNegativeA()
public byte[] getAbyte()
public int hashCode()
hashCode
クラス内 java.lang.Object
public boolean equals(java.lang.Object o)
equals
クラス内 java.lang.Object