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.DHPrivateKey
deserializePrivateKey(YAPIONObject yapionObject, java.lang.String algorithm)
javax.crypto.interfaces.DHPublicKey
deserializePublicKey(YAPIONObject yapionObject, java.lang.String algorithm)
YAPIONObject
serializePrivateKey(javax.crypto.interfaces.DHPrivateKey dhPrivateKey)
YAPIONObject
serializePublicKey(javax.crypto.interfaces.DHPublicKey dhPublicKey)
-
-
-
Method Detail
-
serializePrivateKey
public YAPIONObject serializePrivateKey(javax.crypto.interfaces.DHPrivateKey dhPrivateKey) throws java.security.GeneralSecurityException
- Specified by:
serializePrivateKey
in interfaceKeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>
- Throws:
java.security.GeneralSecurityException
-
deserializePrivateKey
public javax.crypto.interfaces.DHPrivateKey deserializePrivateKey(YAPIONObject yapionObject, java.lang.String algorithm) throws java.security.GeneralSecurityException
- Specified by:
deserializePrivateKey
in interfaceKeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>
- Throws:
java.security.GeneralSecurityException
-
serializePublicKey
public YAPIONObject serializePublicKey(javax.crypto.interfaces.DHPublicKey dhPublicKey) throws java.security.GeneralSecurityException
- Specified by:
serializePublicKey
in interfaceKeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>
- Throws:
java.security.GeneralSecurityException
-
deserializePublicKey
public javax.crypto.interfaces.DHPublicKey deserializePublicKey(YAPIONObject yapionObject, java.lang.String algorithm) throws java.security.GeneralSecurityException
- Specified by:
deserializePublicKey
in interfaceKeySpecSerializer<javax.crypto.interfaces.DHPrivateKey,javax.crypto.interfaces.DHPublicKey>
- Throws:
java.security.GeneralSecurityException
-
-