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 configuredX509Certificates.longcertificateChainAddress()Returns the pointer to theSTACK_OF(X509)which holds the certificate chain.longprivateKeyAddress()Returns the pointer to theEVP_PKEY.booleanrelease()Decreases the reference count by1and deallocates this object if the reference count reaches at0.booleanrelease(int decrement)Decreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.OpenSslKeyMaterialretain()Increases the reference count by1.OpenSslKeyMaterialretain(int increment)Increases the reference count by the specifiedincrement.OpenSslKeyMaterialtouch()Records the current access location of this object for debugging purposes.OpenSslKeyMaterialtouch(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 configuredX509Certificates.
-
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:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceReferenceCounted
-
retain
OpenSslKeyMaterial retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceReferenceCounted
-
touch
OpenSslKeyMaterial 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 interfaceReferenceCounted
-
touch
OpenSslKeyMaterial touch(java.lang.Object hint)
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 interfaceReferenceCounted
-
release
boolean release()
Description copied from interface:ReferenceCountedDecreases the reference count by1and deallocates this object if the reference count reaches at0.- Specified by:
releasein interfaceReferenceCounted- Returns:
trueif and only if the reference count became0and this object has been deallocated
-
release
boolean release(int decrement)
Description copied from interface:ReferenceCountedDecreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.- Specified by:
releasein interfaceReferenceCounted- Returns:
trueif and only if the reference count became0and this object has been deallocated
-
-