Package io.netty.handler.ssl
Interface OpenSslKeyMaterial
-
- All Superinterfaces:
ReferenceCounted
interface OpenSslKeyMaterial extends ReferenceCounted
Holds references to the native key-material that is used by OpenSSL.
-
-
Method Summary
All Methods Instance Methods Abstract 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.long
privateKeyAddress()
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
.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 interface io.netty.util.ReferenceCounted
refCnt
-
-
-
-
Method Detail
-
certificateChain
java.security.cert.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
OpenSslKeyMaterial retain(int increment)
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
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 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
-
-