Top Fields Constructors Methods
io.netty5.handler.ssl

pack-priv final Class DefaultOpenSslKeyMaterial

extends AbstractReferenceCounted
implements OpenSslKeyMaterial
Class Inheritance
All Implemented Interfaces
io.netty5.handler.ssl.OpenSslKeyMaterial, io.netty5.util.ReferenceCounted
Imports
io.netty.internal.tcnative.SSL, io.netty5.util.AbstractReferenceCounted, .IllegalReferenceCountException, .ResourceLeakDetector, .ResourceLeakDetectorFactory, .ResourceLeakTracker, java.security.cert.X509Certificate

Field Summary

Modifier and TypeField and Description
private long
private final ResourceLeakTracker<DefaultOpenSslKeyMaterial>
private static final ResourceLeakDetector<DefaultOpenSslKeyMaterial>
private long
private final X509Certificate[]

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultOpenSslKeyMaterial(long chain, long privateKey, X509Certificate[] x509CertificateChain)

Method Summary

Modifier and TypeMethod and Description
public X509Certificate[]
public long
certificateChainAddress()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChainAddress.

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

Implements abstract io.netty5.util.AbstractReferenceCounted.deallocate.

Called once refCnt() is equals 0.
public long
privateKeyAddress()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.privateKeyAddress.

Returns the pointer to the EVP_PKEY.
public boolean
release()

Overrides io.netty5.util.AbstractReferenceCounted.release.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.release, 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)

Overrides io.netty5.util.AbstractReferenceCounted.release.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.release, 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 DefaultOpenSslKeyMaterial
public DefaultOpenSslKeyMaterial
retain(int increment)

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.retain, io.netty5.util.ReferenceCounted.retain.

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

Overrides io.netty5.util.AbstractReferenceCounted.touch.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.touch, io.netty5.util.ReferenceCounted.touch.

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

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.touch, 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.AbstractReferenceCounted:
refCntsetRefCnt

Field Detail

chainback to summary
private long chain
leakback to summary
private final ResourceLeakTracker<DefaultOpenSslKeyMaterial> leak
leakDetectorback to summary
private static final ResourceLeakDetector<DefaultOpenSslKeyMaterial> leakDetector
privateKeyback to summary
private long privateKey
x509CertificateChainback to summary
private final X509Certificate[] x509CertificateChain

Constructor Detail

DefaultOpenSslKeyMaterialback to summary
pack-priv DefaultOpenSslKeyMaterial(long chain, long privateKey, X509Certificate[] x509CertificateChain)

Method Detail

certificateChainback to summary
public X509Certificate[] certificateChain()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChain.

Doc from io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChain.

Returns the configured X509Certificates.

Annotations
@Override
certificateChainAddressback to summary
public long certificateChainAddress()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChainAddress.

Doc from io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChainAddress.

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

Annotations
@Override
deallocateback to summary
protected void deallocate()

Implements abstract io.netty5.util.AbstractReferenceCounted.deallocate.

Doc from io.netty5.util.AbstractReferenceCounted.deallocate.

Called once refCnt() is equals 0.

Annotations
@Override
privateKeyAddressback to summary
public long privateKeyAddress()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.privateKeyAddress.

Doc from io.netty5.handler.ssl.OpenSslKeyMaterial.privateKeyAddress.

Returns the pointer to the EVP_PKEY.

Annotations
@Override
releaseback to summary
public boolean release()

Overrides io.netty5.util.AbstractReferenceCounted.release.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.release, 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)

Overrides io.netty5.util.AbstractReferenceCounted.release.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.release, 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 DefaultOpenSslKeyMaterial retain()

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.retain, io.netty5.util.ReferenceCounted.retain.

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

Increases the reference count by 1.

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

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.retain, 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 DefaultOpenSslKeyMaterial touch()

Overrides io.netty5.util.AbstractReferenceCounted.touch.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.touch, 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 DefaultOpenSslKeyMaterial touch(Object hint)

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.touch, 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