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.netty.buffer.ByteBuf key)
        Creates a PemPrivateKey from raw ByteBuf. ATTENTION: It's assumed that the given argument is a PEM/PKCS#8 encoded value. No input validation is performed to validate it.
      • isSensitive

        public boolean isSensitive()
      • content

        public io.netty.buffer.ByteBuf content()
        Specified by:
        content in interface io.netty.buffer.ByteBufHolder
      • copy

        public PemPrivateKey copy()
        Specified by:
        copy in interface io.netty.buffer.ByteBufHolder
      • duplicate

        public PemPrivateKey duplicate()
        Specified by:
        duplicate in interface io.netty.buffer.ByteBufHolder
      • retainedDuplicate

        public PemPrivateKey retainedDuplicate()
        Specified by:
        retainedDuplicate in interface io.netty.buffer.ByteBufHolder
      • replace

        public PemPrivateKey replace​(io.netty.buffer.ByteBuf content)
        Specified by:
        replace in interface io.netty.buffer.ByteBufHolder
      • touch

        public PemPrivateKey touch()
        Specified by:
        touch in interface io.netty.buffer.ByteBufHolder
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
        Overrides:
        touch in class io.netty.util.AbstractReferenceCounted
      • touch

        public PemPrivateKey touch​(Object hint)
        Specified by:
        touch in interface io.netty.buffer.ByteBufHolder
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
      • retain

        public PemPrivateKey retain()
        Specified by:
        retain in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
        Overrides:
        retain in class io.netty.util.AbstractReferenceCounted
      • retain

        public PemPrivateKey retain​(int increment)
        Specified by:
        retain in interface io.netty.buffer.ByteBufHolder
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
        Overrides:
        retain in class io.netty.util.AbstractReferenceCounted
      • deallocate

        protected void deallocate()
        Specified by:
        deallocate in class io.netty.util.AbstractReferenceCounted
      • getEncoded

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

        public void destroy()
        NOTE: This is a JDK8 interface/method. Due to backwards compatibility reasons it's not possible to slap the @Override annotation onto this method.
        Specified by:
        destroy in interface Destroyable
        See Also:
        Destroyable.destroy()
      • isDestroyed

        public boolean isDestroyed()
        NOTE: This is a JDK8 interface/method. Due to backwards compatibility reasons it's not possible to slap the @Override annotation onto this method.
        Specified by:
        isDestroyed in interface Destroyable
        See Also:
        Destroyable.isDestroyed()