Class KeySpecSerializerProvider


  • public class KeySpecSerializerProvider
    extends java.lang.Object
    • 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)  
      • Methods inherited from class java.lang.Object

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

      • serializePrivateKey

        public static YAPIONObject serializePrivateKey​(java.security.PrivateKey privateKey)
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deserializePrivateKey

        public static java.security.PrivateKey deserializePrivateKey​(java.lang.Class<?> clazz,
                                                                     YAPIONObject yapionObject,
                                                                     java.lang.String algorithm)
                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • serializePublicKey

        public static YAPIONObject serializePublicKey​(java.security.PublicKey publicKey)
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deserializePublicKey

        public static java.security.PublicKey deserializePublicKey​(java.lang.Class<?> clazz,
                                                                   YAPIONObject yapionObject,
                                                                   java.lang.String algorithm)
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception