Class OpenSslPrivateKey

  • All Implemented Interfaces:
    ReferenceCounted, java.io.Serializable, java.security.Key, java.security.PrivateKey, javax.security.auth.Destroyable

    final class OpenSslPrivateKey
    extends AbstractReferenceCounted
    implements java.security.PrivateKey
    • Field Detail

      • privateKeyAddress

        private long privateKeyAddress
    • Constructor Detail

      • OpenSslPrivateKey

        OpenSslPrivateKey​(long privateKeyAddress)
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Specified by:
        getAlgorithm in interface java.security.Key
      • getFormat

        public java.lang.String getFormat()
        Specified by:
        getFormat in interface java.security.Key
      • getEncoded

        public byte[] getEncoded()
        Specified by:
        getEncoded in interface java.security.Key
      • privateKeyAddress

        private long privateKeyAddress()
      • touch

        public OpenSslPrivateKey touch​(java.lang.Object hint)
        Description copied from interface: ReferenceCounted
        Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.
        Specified by:
        touch in interface ReferenceCounted
      • 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 javax.security.auth.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 javax.security.auth.Destroyable
        See Also:
        Destroyable.isDestroyed()