Interface OpenSslKeyMaterial

  • All Superinterfaces:
    ReferenceCounted

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.security.cert.X509Certificate[] certificateChain()
      Returns the configured X509Certificates.
      long certificateChainAddress()
      Returns the pointer to the STACK_OF(X509) which holds the certificate chain.
      long privateKeyAddress()
      Returns the pointer to the EVP_PKEY.
      boolean release()
      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.
      OpenSslKeyMaterial retain()
      Increases the reference count by 1.
      OpenSslKeyMaterial retain​(int increment)
      Increases the reference count by the specified increment.
      OpenSslKeyMaterial touch()
      Records the current access location of this object for debugging purposes.
      OpenSslKeyMaterial touch​(java.lang.Object hint)
      Records the current access location of this object with an additional arbitrary information for debugging purposes.
    • Method Detail

      • certificateChain

        java.security.cert.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.
      • touch

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