Class OpenSslPrivateKey
java.lang.Object
io.netty.util.AbstractReferenceCounted
io.netty.handler.ssl.OpenSslPrivateKey
- All Implemented Interfaces:
ReferenceCounted, Serializable, Key, PrivateKey, Destroyable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final class -
Field Summary
FieldsFields inherited from interface PrivateKey
serialVersionUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled onceAbstractReferenceCounted.refCnt()is equals 0.voiddestroy()NOTE: This is a JDK8 interface/method.byte[]booleanNOTE: This is a JDK8 interface/method.(package private) OpenSslKeyMaterialnewKeyMaterial(long certificateChain, X509Certificate[] chain) Create a newOpenSslKeyMaterialwhich uses the private key that is held byOpenSslPrivateKey.private longretain()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 AbstractReferenceCounted
refCnt, release, release, setRefCnt
-
Field Details
-
privateKeyAddress
private long privateKeyAddress
-
-
Constructor Details
-
OpenSslPrivateKey
OpenSslPrivateKey(long privateKeyAddress)
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
privateKeyAddress
private long privateKeyAddress() -
deallocate
protected void deallocate()Description copied from class:AbstractReferenceCountedCalled onceAbstractReferenceCounted.refCnt()is equals 0.- Specified by:
deallocatein classAbstractReferenceCounted
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
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- Overrides:
touchin classAbstractReferenceCounted
-
touch
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
-
destroy
public void destroy()NOTE: This is a JDK8 interface/method. Due to backwards compatibility reasons it's not possible to slap the@Overrideannotation onto this method.- Specified by:
destroyin interfaceDestroyable- See Also:
-
isDestroyed
public boolean isDestroyed()NOTE: This is a JDK8 interface/method. Due to backwards compatibility reasons it's not possible to slap the@Overrideannotation onto this method.- Specified by:
isDestroyedin interfaceDestroyable- See Also:
-
newKeyMaterial
Create a newOpenSslKeyMaterialwhich uses the private key that is held byOpenSslPrivateKey. When the material is created we increment the reference count of the enclosingOpenSslPrivateKeyand decrement it again when the reference count of theOpenSslKeyMaterialreaches0.
-