Class BouncyCastleGeneratorHostKeyProvider

    • Constructor Detail

      • BouncyCastleGeneratorHostKeyProvider

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

      • 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
      • writePEMKeyPair

        public static void writePEMKeyPair​(java.security.KeyPair kp,
                                           java.nio.file.Path targetPath)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writePEMKeyPair

        public static void writePEMKeyPair​(java.security.KeyPair kp,
                                           java.nio.file.Path targetPath,
                                           java.nio.file.OpenOption... options)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writePEMKeyPair

        public static void writePEMKeyPair​(java.security.KeyPair kp,
                                           java.io.OutputStream outputStream)
                                    throws java.io.IOException
        Throws:
        java.io.IOException