Top Inners Fields Constructors Methods
io.netty5.handler.ssl

pack-priv final Class OpenSslPrivateKey

extends AbstractReferenceCounted
implements PrivateKey
Class Inheritance
All Implemented Interfaces
java.security.PrivateKey, javax.security.auth.Destroyable, java.security.AsymmetricKey, java.security.Key, java.io.Serializable
Imports
io.netty.internal.tcnative.SSL, io.netty5.util.AbstractReferenceCounted, .IllegalReferenceCountException, io.netty5.util.internal.EmptyArrays, javax.security.auth.Destroyable, java.security.PrivateKey, java.security.cert.X509Certificate

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
pack-priv
OpenSslPrivateKey(long privateKeyAddress)

Method Summary

Modifier and TypeMethod and Description
protected void
deallocate()

Implements abstract io.netty5.util.AbstractReferenceCounted.deallocate.

Called once refCnt() is equals 0.
public void
destroy()

Overrides default javax.security.auth.Destroyable.destroy.

Note

This is a JDK8 interface/method.

public String
getAlgorithm()

Implements java.security.Key.getAlgorithm.

Returns the standard algorithm name for this key.
public byte[]
getEncoded()

Implements java.security.Key.getEncoded.

Returns the key in its primary encoding format, or null if this key does not support encoding.
public String
getFormat()

Implements java.security.Key.getFormat.

Returns the name of the primary encoding format of this key, or null if this key does not support encoding.
public boolean
isDestroyed()

Overrides default javax.security.auth.Destroyable.isDestroyed.

Note

This is a JDK8 interface/method.

pack-priv OpenSslKeyMaterial
newKeyMaterial(long certificateChain, X509Certificate[] chain)

Create a new OpenSslKeyMaterial which uses the private key that is held by OpenSslPrivateKey.

private long
public OpenSslPrivateKey
retain()

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.util.ReferenceCounted.retain.

Increases the reference count by 1.
public OpenSslPrivateKey
retain(int increment)

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.
public OpenSslPrivateKey
touch()

Overrides io.netty5.util.AbstractReferenceCounted.touch.

Implements io.netty5.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes.
public OpenSslPrivateKey
touch(Object hint)

Implements io.netty5.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
Inherited from io.netty5.util.AbstractReferenceCounted:
refCntreleasereleasesetRefCnt

Field Detail

privateKeyAddressback to summary
private long privateKeyAddress

Constructor Detail

OpenSslPrivateKeyback to summary
pack-priv OpenSslPrivateKey(long privateKeyAddress)

Method Detail

deallocateback to summary
protected void deallocate()

Implements abstract io.netty5.util.AbstractReferenceCounted.deallocate.

Doc from io.netty5.util.AbstractReferenceCounted.deallocate.

Called once refCnt() is equals 0.

Annotations
@Override
destroyback to summary
public void destroy()

Overrides default javax.security.auth.Destroyable.destroy.

Note

This is a JDK8 interface/method. Due to backwards compatibility reasons it's not possible to slap the @Override annotation onto this method.

Annotations
@Override
See Also
Destroyable#destroy()
getAlgorithmback to summary
public String getAlgorithm()

Implements java.security.Key.getAlgorithm.

Doc from java.security.Key.getAlgorithm.

Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key. See the key related sections (KeyFactory, KeyGenerator, KeyPairGenerator, and SecretKeyFactory) in the Java Security Standard Algorithm Names Specification for information about standard key algorithm names.

Returns:String

the name of the algorithm associated with this key.

Annotations
@Override
getEncodedback to summary
public byte[] getEncoded()

Implements java.security.Key.getEncoded.

Doc from java.security.Key.getEncoded.

Returns the key in its primary encoding format, or null if this key does not support encoding.

Returns:byte[]

the encoded key, or null if the key does not support encoding.

Annotations
@Override
getFormatback to summary
public String getFormat()

Implements java.security.Key.getFormat.

Doc from java.security.Key.getFormat.

Returns the name of the primary encoding format of this key, or null if this key does not support encoding. The primary encoding format is named in terms of the appropriate ASN.1 data format, if an ASN.1 specification for this key exists. For example, the name of the ASN.1 data format for public keys is SubjectPublicKeyInfo, as defined by the X.509 standard; in this case, the returned format is "X.509". Similarly, the name of the ASN.1 data format for private keys is PrivateKeyInfo, as defined by the PKCS #8 standard; in this case, the returned format is "PKCS#8".

Returns:String

the primary encoding format of the key.

Annotations
@Override
isDestroyedback to summary
public boolean isDestroyed()

Overrides default javax.security.auth.Destroyable.isDestroyed.

Note

This is a JDK8 interface/method. Due to backwards compatibility reasons it's not possible to slap the @Override annotation onto this method.

Returns:boolean

Doc from javax.security.auth.Destroyable.isDestroyed.

true if this Object has been destroyed, false otherwise.

Annotations
@Override
See Also
Destroyable#isDestroyed()
newKeyMaterialback to summary
pack-priv OpenSslKeyMaterial newKeyMaterial(long certificateChain, X509Certificate[] chain)

Create a new OpenSslKeyMaterial which uses the private key that is held by OpenSslPrivateKey. When the material is created we increment the reference count of the enclosing OpenSslPrivateKey and decrement it again when the reference count of the OpenSslKeyMaterial reaches 0.

privateKeyAddressback to summary
private long privateKeyAddress()
retainback to summary
public OpenSslPrivateKey retain()

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.util.ReferenceCounted.retain.

Doc from io.netty5.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public OpenSslPrivateKey retain(int increment)

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.util.ReferenceCounted.retain.

Doc from io.netty5.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
touchback to summary
public OpenSslPrivateKey touch()

Overrides io.netty5.util.AbstractReferenceCounted.touch.

Implements io.netty5.util.ReferenceCounted.touch.

Doc from io.netty5.util.ReferenceCounted.touch.

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 via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override
touchback to summary
public OpenSslPrivateKey touch(Object hint)

Implements io.netty5.util.ReferenceCounted.touch.

Doc from io.netty5.util.ReferenceCounted.touch.

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 via ResourceLeakDetector.

Annotations
@Override
io.netty5.handler.ssl back to summary

pack-priv final Class OpenSslPrivateKey.OpenSslPrivateKeyMaterial

extends AbstractReferenceCounted
implements OpenSslKeyMaterial
Class Inheritance
All Implemented Interfaces
io.netty5.handler.ssl.OpenSslKeyMaterial, io.netty5.util.ReferenceCounted

Field Summary

Modifier and TypeField and Description
pack-priv long
private final X509Certificate[]

Constructor Summary

AccessConstructor and Description
pack-priv
OpenSslPrivateKeyMaterial(long certificateChain, X509Certificate[] x509CertificateChain)

Method Summary

Modifier and TypeMethod and Description
public X509Certificate[]
public long
certificateChainAddress()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChainAddress.

Returns the pointer to the STACK_OF(X509) which holds the certificate chain.
protected void
deallocate()

Implements abstract io.netty5.util.AbstractReferenceCounted.deallocate.

Called once refCnt() is equals 0.
public long
privateKeyAddress()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.privateKeyAddress.

Returns the pointer to the EVP_PKEY.
private void
public OpenSslKeyMaterial
public OpenSslKeyMaterial
retain(int increment)

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.retain, io.netty5.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.
public OpenSslKeyMaterial
touch(Object hint)

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.touch, io.netty5.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
public OpenSslKeyMaterial
touch()

Overrides io.netty5.util.AbstractReferenceCounted.touch.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.touch, io.netty5.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes.
Inherited from io.netty5.util.AbstractReferenceCounted:
refCntreleasereleasesetRefCnt

Field Detail

certificateChainback to summary
pack-priv long certificateChain
x509CertificateChainback to summary
private final X509Certificate[] x509CertificateChain

Constructor Detail

OpenSslPrivateKeyMaterialback to summary
pack-priv OpenSslPrivateKeyMaterial(long certificateChain, X509Certificate[] x509CertificateChain)

Method Detail

certificateChainback to summary
public X509Certificate[] certificateChain()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChain.

Doc from io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChain.

Returns the configured X509Certificates.

Annotations
@Override
certificateChainAddressback to summary
public long certificateChainAddress()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChainAddress.

Doc from io.netty5.handler.ssl.OpenSslKeyMaterial.certificateChainAddress.

Returns the pointer to the STACK_OF(X509) which holds the certificate chain.

Annotations
@Override
deallocateback to summary
protected void deallocate()

Implements abstract io.netty5.util.AbstractReferenceCounted.deallocate.

Doc from io.netty5.util.AbstractReferenceCounted.deallocate.

Called once refCnt() is equals 0.

Annotations
@Override
privateKeyAddressback to summary
public long privateKeyAddress()

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.privateKeyAddress.

Doc from io.netty5.handler.ssl.OpenSslKeyMaterial.privateKeyAddress.

Returns the pointer to the EVP_PKEY.

Annotations
@Override
releaseChainback to summary
private void releaseChain()
retainback to summary
public OpenSslKeyMaterial retain()

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.retain, io.netty5.util.ReferenceCounted.retain.

Doc from io.netty5.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public OpenSslKeyMaterial retain(int increment)

Overrides io.netty5.util.AbstractReferenceCounted.retain.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.retain, io.netty5.util.ReferenceCounted.retain.

Doc from io.netty5.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
touchback to summary
public OpenSslKeyMaterial touch(Object hint)

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.touch, io.netty5.util.ReferenceCounted.touch.

Doc from io.netty5.util.ReferenceCounted.touch.

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 via ResourceLeakDetector.

Annotations
@Override
touchback to summary
public OpenSslKeyMaterial touch()

Overrides io.netty5.util.AbstractReferenceCounted.touch.

Implements io.netty5.handler.ssl.OpenSslKeyMaterial.touch, io.netty5.util.ReferenceCounted.touch.

Doc from io.netty5.util.ReferenceCounted.touch.

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 via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override