Class DHKeySpecSerializer
- java.lang.Object
-
- yapion.serializing.serializer.object.security.internal.DHKeySpecSerializer
-
- All Implemented Interfaces:
KeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>
public class DHKeySpecSerializer extends java.lang.Object implements KeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>
-
-
Constructor Summary
Constructors Constructor Description DHKeySpecSerializer()
-
Method Summary
Modifier and Type Method Description javax.crypto.interfaces.DHPrivateKeydeserializePrivateKey(YAPIONObject yapionObject, java.lang.String algorithm)javax.crypto.interfaces.DHPublicKeydeserializePublicKey(YAPIONObject yapionObject, java.lang.String algorithm)YAPIONObjectserializePrivateKey(javax.crypto.interfaces.DHPrivateKey dhPrivateKey)YAPIONObjectserializePublicKey(javax.crypto.interfaces.DHPublicKey dhPublicKey)
-
-
-
Method Detail
-
serializePrivateKey
public YAPIONObject serializePrivateKey(javax.crypto.interfaces.DHPrivateKey dhPrivateKey) throws java.lang.Exception
- Specified by:
serializePrivateKeyin interfaceKeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>- Throws:
java.lang.Exception
-
deserializePrivateKey
public javax.crypto.interfaces.DHPrivateKey deserializePrivateKey(YAPIONObject yapionObject, java.lang.String algorithm) throws java.lang.Exception
- Specified by:
deserializePrivateKeyin interfaceKeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>- Throws:
java.lang.Exception
-
serializePublicKey
public YAPIONObject serializePublicKey(javax.crypto.interfaces.DHPublicKey dhPublicKey) throws java.lang.Exception
- Specified by:
serializePublicKeyin interfaceKeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>- Throws:
java.lang.Exception
-
deserializePublicKey
public javax.crypto.interfaces.DHPublicKey deserializePublicKey(YAPIONObject yapionObject, java.lang.String algorithm) throws java.lang.Exception
- Specified by:
deserializePublicKeyin interfaceKeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>- Throws:
java.lang.Exception
-
-