Class SimpleGeneratorHostKeyProvider

    • Constructor Detail

      • SimpleGeneratorHostKeyProvider

        public SimpleGeneratorHostKeyProvider()
      • SimpleGeneratorHostKeyProvider

        public SimpleGeneratorHostKeyProvider​(java.nio.file.Path path)
    • Method Detail

      • doReadKeyPairs

        protected java.lang.Iterable<java.security.KeyPair> doReadKeyPairs​(SessionContext session,
                                                                           NamedResource resourceKey,
                                                                           java.io.InputStream inputStream)
                                                                    throws java.io.IOException,
                                                                           java.security.GeneralSecurityException
        Overrides:
        doReadKeyPairs in class AbstractGeneratorHostKeyProvider
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
      • isJavaSerialization

        private boolean isJavaSerialization​(java.io.BufferedInputStream in,
                                            NamedResource resourceKey)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • doWriteKeyPair

        protected void doWriteKeyPair​(NamedResource resourceKey,
                                      java.security.KeyPair kp,
                                      java.io.OutputStream outputStream)
                               throws java.io.IOException,
                                      java.security.GeneralSecurityException
        Specified by:
        doWriteKeyPair in class AbstractGeneratorHostKeyProvider
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException