Class RSAKeySpecSerializer
- java.lang.Object
-
- yapion.serializing.serializer.object.security.internal.RSAKeySpecSerializer
-
- All Implemented Interfaces:
KeySpecSerializer<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey>
public class RSAKeySpecSerializer extends java.lang.Object implements KeySpecSerializer<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey>
-
-
Constructor Summary
Constructors Constructor Description RSAKeySpecSerializer()
-
Method Summary
Modifier and Type Method Description java.security.interfaces.RSAPrivateKeydeserializePrivateKey(YAPIONObject yapionObject, java.lang.String algorithm)java.security.interfaces.RSAPublicKeydeserializePublicKey(YAPIONObject yapionObject, java.lang.String algorithm)YAPIONObjectserializePrivateKey(java.security.interfaces.RSAPrivateKey rsaPrivateKey)YAPIONObjectserializePublicKey(java.security.interfaces.RSAPublicKey rsaPublicKey)
-
-
-
Method Detail
-
serializePrivateKey
public YAPIONObject serializePrivateKey(java.security.interfaces.RSAPrivateKey rsaPrivateKey) throws java.security.GeneralSecurityException
- Specified by:
serializePrivateKeyin interfaceKeySpecSerializer<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey>- Throws:
java.security.GeneralSecurityException
-
deserializePrivateKey
public java.security.interfaces.RSAPrivateKey deserializePrivateKey(YAPIONObject yapionObject, java.lang.String algorithm) throws java.security.GeneralSecurityException
- Specified by:
deserializePrivateKeyin interfaceKeySpecSerializer<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey>- Throws:
java.security.GeneralSecurityException
-
serializePublicKey
public YAPIONObject serializePublicKey(java.security.interfaces.RSAPublicKey rsaPublicKey) throws java.security.GeneralSecurityException
- Specified by:
serializePublicKeyin interfaceKeySpecSerializer<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey>- Throws:
java.security.GeneralSecurityException
-
deserializePublicKey
public java.security.interfaces.RSAPublicKey deserializePublicKey(YAPIONObject yapionObject, java.lang.String algorithm) throws java.security.GeneralSecurityException
- Specified by:
deserializePublicKeyin interfaceKeySpecSerializer<java.security.interfaces.RSAPrivateKey,java.security.interfaces.RSAPublicKey>- Throws:
java.security.GeneralSecurityException
-
-