Class KeySpecSerializerProvider
- java.lang.Object
-
- yapion.serializing.serializer.object.security.internal.KeySpecSerializerProvider
-
public class KeySpecSerializerProvider extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KeySpecSerializerProvider()
-
Method Summary
Modifier and Type Method Description static java.security.PrivateKey
deserializePrivateKey(java.lang.Class<?> clazz, YAPIONObject yapionObject, java.lang.String algorithm)
static java.security.PublicKey
deserializePublicKey(java.lang.Class<?> clazz, YAPIONObject yapionObject, java.lang.String algorithm)
static YAPIONObject
serializePrivateKey(java.security.PrivateKey privateKey)
static YAPIONObject
serializePublicKey(java.security.PublicKey publicKey)
-
-
-
Method Detail
-
serializePrivateKey
public static YAPIONObject serializePrivateKey(java.security.PrivateKey privateKey) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
deserializePrivateKey
public static java.security.PrivateKey deserializePrivateKey(java.lang.Class<?> clazz, YAPIONObject yapionObject, java.lang.String algorithm) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
serializePublicKey
public static YAPIONObject serializePublicKey(java.security.PublicKey publicKey) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
deserializePublicKey
public static java.security.PublicKey deserializePublicKey(java.lang.Class<?> clazz, YAPIONObject yapionObject, java.lang.String algorithm) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
-