Interface OpenSslKeyMaterial

All Superinterfaces:
ReferenceCounted
All Known Implementing Classes:
DefaultOpenSslKeyMaterial, OpenSslPrivateKey.OpenSslPrivateKeyMaterial

interface OpenSslKeyMaterial extends ReferenceCounted
Holds references to the native key-material that is used by OpenSSL.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the configured X509Certificates.
    long
    Returns the pointer to the STACK_OF(X509) which holds the certificate chain.
    long
    Returns the pointer to the EVP_PKEY.
    boolean
    Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
    boolean
    release(int decrement)
    Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
    Increases the reference count by 1.
    retain(int increment)
    Increases the reference count by the specified increment.
    Records the current access location of this object for debugging purposes.
    touch(Object hint)
    Records the current access location of this object with an additional arbitrary information for debugging purposes.

    Methods inherited from interface io.netty.util.ReferenceCounted

    refCnt
  • Method Details

    • certificateChain

      X509Certificate[] certificateChain()
      Returns the configured X509Certificates.
    • certificateChainAddress

      long certificateChainAddress()
      Returns the pointer to the STACK_OF(X509) which holds the certificate chain.
    • privateKeyAddress

      long privateKeyAddress()
      Returns the pointer to the EVP_PKEY.
    • retain

      Description copied from interface: ReferenceCounted
      Increases the reference count by 1.
      Specified by:
      retain in interface ReferenceCounted
    • retain

      OpenSslKeyMaterial retain(int increment)
      Description copied from interface: ReferenceCounted
      Increases the reference count by the specified increment.
      Specified by:
      retain in interface ReferenceCounted
    • touch

      Description copied from interface: ReferenceCounted
      Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).
      Specified by:
      touch in interface ReferenceCounted
    • touch

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

      boolean release()
      Description copied from interface: ReferenceCounted
      Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
      Specified by:
      release in interface ReferenceCounted
      Returns:
      true if and only if the reference count became 0 and this object has been deallocated
    • release

      boolean release(int decrement)
      Description copied from interface: ReferenceCounted
      Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
      Specified by:
      release in interface ReferenceCounted
      Returns:
      true if and only if the reference count became 0 and this object has been deallocated