Package io.netty.handler.ssl
Interface OpenSslKeyMaterial
- All Superinterfaces:
ReferenceCounted
- All Known Implementing Classes:
DefaultOpenSslKeyMaterial
,OpenSslPrivateKey.OpenSslPrivateKeyMaterial
Holds references to the native key-material that is used by OpenSSL.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the configuredX509Certificate
s.long
Returns the pointer to theSTACK_OF(X509)
which holds the certificate chain.long
Returns the pointer to theEVP_PKEY
.boolean
release()
Decreases the reference count by1
and deallocates this object if the reference count reaches at0
.boolean
release
(int decrement) Decreases the reference count by the specifieddecrement
and deallocates this object if the reference count reaches at0
.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 interface io.netty.util.ReferenceCounted
refCnt
-
Method Details
-
certificateChain
X509Certificate[] certificateChain()Returns the configuredX509Certificate
s. -
certificateChainAddress
long certificateChainAddress()Returns the pointer to theSTACK_OF(X509)
which holds the certificate chain. -
privateKeyAddress
long privateKeyAddress()Returns the pointer to theEVP_PKEY
. -
retain
OpenSslKeyMaterial retain()Description copied from interface:ReferenceCounted
Increases the reference count by1
.- Specified by:
retain
in interfaceReferenceCounted
-
retain
Description copied from interface:ReferenceCounted
Increases the reference count by the specifiedincrement
.- Specified by:
retain
in interfaceReferenceCounted
-
touch
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 interfaceReferenceCounted
-
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 interfaceReferenceCounted
-
release
boolean release()Description copied from interface:ReferenceCounted
Decreases the reference count by1
and deallocates this object if the reference count reaches at0
.- Specified by:
release
in interfaceReferenceCounted
- Returns:
true
if and only if the reference count became0
and this object has been deallocated
-
release
boolean release(int decrement) Description copied from interface:ReferenceCounted
Decreases the reference count by the specifieddecrement
and deallocates this object if the reference count reaches at0
.- Specified by:
release
in interfaceReferenceCounted
- Returns:
true
if and only if the reference count became0
and this object has been deallocated
-