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 configuredX509Certificate
s.long
Returns the pointer to theSTACK_OF(X509)
which holds the certificate chain.protected void
Called onceAbstractReferenceCounted.refCnt()
is equals 0.long
Returns the pointer to theEVP_PKEY
.private void
retain()
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, setRefCnt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.handler.ssl.OpenSslKeyMaterial
release, release
Methods 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:OpenSslKeyMaterial
Returns the configuredX509Certificate
s.- Specified by:
certificateChain
in interfaceOpenSslKeyMaterial
-
certificateChainAddress
public long certificateChainAddress()Description copied from interface:OpenSslKeyMaterial
Returns the pointer to theSTACK_OF(X509)
which holds the certificate chain.- Specified by:
certificateChainAddress
in interfaceOpenSslKeyMaterial
-
privateKeyAddress
public long privateKeyAddress()Description copied from interface:OpenSslKeyMaterial
Returns the pointer to theEVP_PKEY
.- Specified by:
privateKeyAddress
in interfaceOpenSslKeyMaterial
-
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 viaResourceLeakDetector
.- Specified by:
touch
in interfaceOpenSslKeyMaterial
- Specified by:
touch
in interfaceReferenceCounted
-
retain
Description copied from interface:ReferenceCounted
Increases the reference count by1
.- Specified by:
retain
in interfaceOpenSslKeyMaterial
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractReferenceCounted
-
retain
Description copied from interface:ReferenceCounted
Increases the reference count by the specifiedincrement
.- Specified by:
retain
in interfaceOpenSslKeyMaterial
- Specified by:
retain
in interfaceReferenceCounted
- Overrides:
retain
in classAbstractReferenceCounted
-
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 viaResourceLeakDetector
. This method is a shortcut totouch(null)
.- Specified by:
touch
in interfaceOpenSslKeyMaterial
- Specified by:
touch
in interfaceReferenceCounted
- Overrides:
touch
in classAbstractReferenceCounted
-
deallocate
protected void deallocate()Description copied from class:AbstractReferenceCounted
Called onceAbstractReferenceCounted.refCnt()
is equals 0.- Specified by:
deallocate
in classAbstractReferenceCounted
-
releaseChain
private void releaseChain()
-