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 Modifier and Type Field Description (package private) long
certificateChain
private java.security.cert.X509Certificate[]
x509CertificateChain
-
Constructor Summary
Constructors Constructor Description OpenSslPrivateKeyMaterial(long certificateChain, java.security.cert.X509Certificate[] x509CertificateChain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.X509Certificate[]
certificateChain()
Returns the configuredX509Certificate
s.long
certificateChainAddress()
Returns the pointer to theSTACK_OF(X509)
which holds the certificate chain.protected void
deallocate()
Called onceAbstractReferenceCounted.refCnt()
is equals 0.long
privateKeyAddress()
Returns the pointer to theEVP_PKEY
.private void
releaseChain()
OpenSslKeyMaterial
retain()
Increases the reference count by1
.OpenSslKeyMaterial
retain(int increment)
Increases the reference count by the specifiedincrement
.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.-
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
-
-
-
-
Method Detail
-
certificateChain
public java.security.cert.X509Certificate[] 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
public 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 viaResourceLeakDetector
.- Specified by:
touch
in interfaceOpenSslKeyMaterial
- Specified by:
touch
in interfaceReferenceCounted
-
retain
public OpenSslKeyMaterial 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
public OpenSslKeyMaterial retain(int increment)
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
public OpenSslKeyMaterial 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()
-
-