Class 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>
    • Method Summary

      Modifier and Type Method Description
      java.security.interfaces.RSAPrivateKey deserializePrivateKey​(YAPIONObject yapionObject, java.lang.String algorithm)  
      java.security.interfaces.RSAPublicKey deserializePublicKey​(YAPIONObject yapionObject, java.lang.String algorithm)  
      YAPIONObject serializePrivateKey​(java.security.interfaces.RSAPrivateKey rsaPrivateKey)  
      YAPIONObject serializePublicKey​(java.security.interfaces.RSAPublicKey rsaPublicKey)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RSAKeySpecSerializer

        public RSAKeySpecSerializer()
    • Method Detail

      • serializePrivateKey

        public YAPIONObject serializePrivateKey​(java.security.interfaces.RSAPrivateKey rsaPrivateKey)
                                         throws java.security.GeneralSecurityException
        Specified by:
        serializePrivateKey in interface KeySpecSerializer<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:
        deserializePrivateKey in interface KeySpecSerializer<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:
        serializePublicKey in interface KeySpecSerializer<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:
        deserializePublicKey in interface KeySpecSerializer<java.security.interfaces.RSAPrivateKey,​java.security.interfaces.RSAPublicKey>
        Throws:
        java.security.GeneralSecurityException