Top Description Methods
io.netty5.handler.ssl

pack-priv Interface OpenSslKeyMaterial

extends ReferenceCounted
Known Direct Implementers
io.netty5.handler.ssl.OpenSslPrivateKey.OpenSslPrivateKeyMaterial, io.netty5.handler.ssl.DefaultOpenSslKeyMaterial
Imports
io.netty5.util.ReferenceCounted, java.security.cert.X509Certificate

Holds references to the native key-material that is used by OpenSSL.

Method Summary

Modifier and TypeMethod and Description
public X509Certificate[]
certificateChain()

Returns the configured X509Certificates.

public long
certificateChainAddress()

Returns the pointer to the STACK_OF(X509) which holds the certificate chain.

public long
privateKeyAddress()

Returns the pointer to the EVP_PKEY.

public boolean
release()

Redeclares io.netty5.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
public boolean
release(int decrement)

Redeclares io.netty5.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
public OpenSslKeyMaterial
retain()

Redeclares io.netty5.util.ReferenceCounted.retain.

Increases the reference count by 1.
public OpenSslKeyMaterial
retain(int increment)

Redeclares io.netty5.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.
public OpenSslKeyMaterial
touch()

Redeclares io.netty5.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes.
public OpenSslKeyMaterial
touch(Object hint)

Redeclares io.netty5.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
Inherited from io.netty5.util.ReferenceCounted:
refCnt

Method Detail

certificateChainback to summary
public X509Certificate[] certificateChain()

Returns the configured X509Certificates.

certificateChainAddressback to summary
public long certificateChainAddress()

Returns the pointer to the STACK_OF(X509) which holds the certificate chain.

privateKeyAddressback to summary
public long privateKeyAddress()

Returns the pointer to the EVP_PKEY.

releaseback to summary
public boolean release()

Redeclares io.netty5.util.ReferenceCounted.release.

Doc from io.netty5.util.ReferenceCounted.release.

Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.

Returns:boolean

true if and only if the reference count became 0 and this object has been deallocated

Annotations
@Override
releaseback to summary
public boolean release(int decrement)

Redeclares io.netty5.util.ReferenceCounted.release.

Doc from io.netty5.util.ReferenceCounted.release.

Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.

Returns:boolean

true if and only if the reference count became 0 and this object has been deallocated

Annotations
@Override
retainback to summary
public OpenSslKeyMaterial retain()

Redeclares io.netty5.util.ReferenceCounted.retain.

Doc from io.netty5.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public OpenSslKeyMaterial retain(int increment)

Redeclares io.netty5.util.ReferenceCounted.retain.

Doc from io.netty5.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
touchback to summary
public OpenSslKeyMaterial touch()

Redeclares io.netty5.util.ReferenceCounted.touch.

Doc from io.netty5.util.ReferenceCounted.touch.

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).

Annotations
@Override
touchback to summary
public OpenSslKeyMaterial touch(Object hint)

Redeclares io.netty5.util.ReferenceCounted.touch.

Doc from io.netty5.util.ReferenceCounted.touch.

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.

Annotations
@Override