Package org.jose4j.keys
Class EdDsaKeyUtil
java.lang.Object
org.jose4j.keys.OctetKeyPairUtil
org.jose4j.keys.EdDsaKeyUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
protected String
protected SecureRandom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromPemEncoded
(String pem) protected KeyFactory
protected KeyPairGenerator
boolean
static boolean
isEdECPrivateKey
(Key key) static boolean
isEdECPublicKey
(Key key) static String
privateKey
(byte[] privateKeyBytes, String name) byte[]
rawPrivateKey
(PrivateKey privateKey) byte[]
rawPublicKey
(Key key) Methods inherited from class org.jose4j.keys.OctetKeyPairUtil
generateKeyPair, getOctetKeyPairUtil
-
Field Details
-
ED25519
- See Also:
-
ED448
- See Also:
-
provider
-
secureRandom
-
-
Constructor Details
-
EdDsaKeyUtil
public EdDsaKeyUtil() -
EdDsaKeyUtil
-
-
Method Details
-
rawPublicKey
- Specified by:
rawPublicKey
in classOctetKeyPairUtil
-
rawPrivateKey
- Specified by:
rawPrivateKey
in classOctetKeyPairUtil
-
publicKey
- Specified by:
publicKey
in classOctetKeyPairUtil
- Throws:
JoseException
-
privateKey
- Specified by:
privateKey
in classOctetKeyPairUtil
- Throws:
JoseException
-
isEdECPublicKey
-
isEdECPrivateKey
-
getKeyFactory
- Throws:
JoseException
-
getKeyPairGenerator
- Throws:
JoseException
-
fromPemEncoded
- Throws:
JoseException
InvalidKeySpecException
-
pemEncode
-
isAvailable
public boolean isAvailable()
-