Class PemPrivateKey

    • Method Detail

      • valueOf

        public static PemPrivateKey valueOf​(byte[] key)
        Creates a PemPrivateKey from raw byte[]. ATTENTION: It's assumed that the given argument is a PEM/PKCS#8 encoded value. No input validation is performed to validate it.
      • valueOf

        public static PemPrivateKey valueOf​(io.netty5.buffer.Buffer key)
        Creates a PemPrivateKey from raw Buffer. ATTENTION: It's assumed that the given argument is a PEM/PKCS#8 encoded value. No input validation is performed to validate it.
      • content

        public io.netty5.buffer.Buffer content()
      • receive

        protected PemPrivateKey receive​(io.netty5.buffer.Buffer buf)
        Specified by:
        receive in class io.netty5.buffer.BufferHolder<PemPrivateKey>
      • getEncoded

        public byte[] getEncoded()
        Specified by:
        getEncoded in interface Key
      • close

        public abstract void close()
        Close this PEM encoded value and free its related resources.
        Specified by:
        close in interface AutoCloseable