Package org.jose4j.keys
Class EdDsaKeyUtil
java.lang.Object
org.jose4j.keys.OctetKeyPairUtil
org.jose4j.keys.EdDsaKeyUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected Stringprotected SecureRandom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromPemEncoded(String pem) protected KeyFactoryprotected KeyPairGeneratorbooleanstatic booleanisEdECPrivateKey(Key key) static booleanisEdECPublicKey(Key key) static StringprivateKey(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:
rawPublicKeyin classOctetKeyPairUtil
-
rawPrivateKey
- Specified by:
rawPrivateKeyin classOctetKeyPairUtil
-
publicKey
- Specified by:
publicKeyin classOctetKeyPairUtil- Throws:
JoseException
-
privateKey
- Specified by:
privateKeyin classOctetKeyPairUtil- Throws:
JoseException
-
isEdECPublicKey
-
isEdECPrivateKey
-
getKeyFactory
- Throws:
JoseException
-
getKeyPairGenerator
- Throws:
JoseException
-
fromPemEncoded
- Throws:
JoseExceptionInvalidKeySpecException
-
pemEncode
-
isAvailable
public boolean isAvailable()
-