Package io.netty.handler.ssl
Class OpenSslPrivateKey.OpenSslPrivateKeyMaterial
java.lang.Object
io.netty.util.AbstractReferenceCounted
io.netty.handler.ssl.OpenSslPrivateKey.OpenSslPrivateKeyMaterial
- All Implemented Interfaces:
OpenSslKeyMaterial,ReferenceCounted
- Enclosing class:
OpenSslPrivateKey
final class OpenSslPrivateKey.OpenSslPrivateKeyMaterial
extends AbstractReferenceCounted
implements OpenSslKeyMaterial
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslPrivateKeyMaterial(long certificateChain, X509Certificate[] x509CertificateChain) -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuredX509Certificates.longReturns the pointer to theSTACK_OF(X509)which holds the certificate chain.protected voidCalled onceAbstractReferenceCounted.refCnt()is equals 0.longReturns the pointer to theEVP_PKEY.private voidretain()Increases the reference count by1.retain(int increment) Increases the reference count by the specifiedincrement.touch()Records the current access location of this object for debugging purposes.Records the current access location of this object with an additional arbitrary information for debugging purposes.Methods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, setRefCntMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.handler.ssl.OpenSslKeyMaterial
release, releaseMethods inherited from interface io.netty.util.ReferenceCounted
refCnt
-
Field Details
-
certificateChain
long certificateChain -
x509CertificateChain
-
-
Constructor Details
-
OpenSslPrivateKeyMaterial
OpenSslPrivateKeyMaterial(long certificateChain, X509Certificate[] x509CertificateChain)
-
-
Method Details
-
certificateChain
Description copied from interface:OpenSslKeyMaterialReturns the configuredX509Certificates.- Specified by:
certificateChainin interfaceOpenSslKeyMaterial
-
certificateChainAddress
public long certificateChainAddress()Description copied from interface:OpenSslKeyMaterialReturns the pointer to theSTACK_OF(X509)which holds the certificate chain.- Specified by:
certificateChainAddressin interfaceOpenSslKeyMaterial
-
privateKeyAddress
public long privateKeyAddress()Description copied from interface:OpenSslKeyMaterialReturns the pointer to theEVP_PKEY.- Specified by:
privateKeyAddressin interfaceOpenSslKeyMaterial
-
touch
Description copied from interface:ReferenceCountedRecords 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 viaResourceLeakDetector.- Specified by:
touchin interfaceOpenSslKeyMaterial- Specified by:
touchin interfaceReferenceCounted
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceOpenSslKeyMaterial- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceOpenSslKeyMaterial- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
touch
Description copied from interface:ReferenceCountedRecords 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 viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceOpenSslKeyMaterial- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classAbstractReferenceCounted
-
deallocate
protected void deallocate()Description copied from class:AbstractReferenceCountedCalled onceAbstractReferenceCounted.refCnt()is equals 0.- Specified by:
deallocatein classAbstractReferenceCounted
-
releaseChain
private void releaseChain()
-