PrivateKey which allows the
user to pass PEM/PKCS#8 encoded key material straight into OpenSslContext
without having to parse and re-encode bytes in Java land.
All methods other than what's implemented in PemEncoded and Destroyable
throw UnsupportedOperationExceptions.
PemEncoded, OpenSslContext, valueOf(byte[]), valueOf(ByteBuf)
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private final ByteBuf | |
| private static final byte[] | |
| private static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | content()
Implements io. ByteBufHolder.
|
| public PemPrivateKey | |
| protected void | deallocate()
Implements abstract io. refCnt() is equals 0.
|
| public void | destroy()
Overrides default javax. Note This is a JDK8 interface/method. |
| public PemPrivateKey | |
| public String | getAlgorithm()
Implements java. |
| public byte[] | getEncoded()
Implements java. null
if this key does not support encoding.
|
| public String | getFormat()
Implements java. null if this key does not support encoding.
|
| public boolean | isDestroyed()
Overrides default javax. Note This is a JDK8 interface/method. |
| public boolean | isSensitive()
Implements io. true if the PEM encoded value is considered
sensitive information such as a private key.
|
| public PemPrivateKey | replace(ByteBuf content)
Implements io. ByteBufHolder which contains the specified content.
|
| public PemPrivateKey | retain()
Overrides io. Implements io. 1.
|
| public PemPrivateKey | retain(int increment)
Overrides io. Implements io. increment.
|
| public PemPrivateKey | retainedDuplicate()
Implements io. ByteBufHolder.
|
| pack-priv static PemEncoded | toPEM(ByteBufAllocator allocator, boolean useDirect, PrivateKey key)
Creates a |
| pack-priv static PemEncoded | |
| public PemPrivateKey | touch()
Overrides io. Implements io. |
| public PemPrivateKey | touch(Object hint)
Implements io. |
| public static PemPrivateKey | |
| public static PemPrivateKey |
| BEGIN_PRIVATE_KEY | back to summary |
|---|---|
| private static final byte[] BEGIN_PRIVATE_KEY | |
| content | back to summary |
|---|---|
| private final ByteBuf content | |
| END_PRIVATE_KEY | back to summary |
|---|---|
| private static final byte[] END_PRIVATE_KEY | |
| PKCS8_FORMAT | back to summary |
|---|---|
| private static final String PKCS8_FORMAT | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| PemPrivateKey | back to summary |
|---|---|
| private PemPrivateKey(ByteBuf content) | |
| content | back to summary |
|---|---|
| public ByteBuf content() Implements io. Doc from io. Return the data which is held by this
| |
| copy | back to summary |
|---|---|
| public PemPrivateKey copy() Implements io. Doc from io. Creates a deep copy of this
| |
| deallocate | back to summary |
|---|---|
| protected void deallocate() Implements abstract io. Doc from io. Called once
| |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides default javax. Note This is a JDK8 interface/method. Due to backwards compatibility
reasons it's not possible to slap the
| |
| duplicate | back to summary |
|---|---|
| public PemPrivateKey duplicate() Implements io. Doc from io. Duplicates this
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements java. Doc from java. 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. | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements java. Doc from java. Returns the key in its primary encoding format, or
| |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Doc from java. Returns the name of the primary encoding format of this key,
or | |
| isDestroyed | back to summary |
|---|---|
| public boolean isDestroyed() Overrides default javax. Note This is a JDK8 interface/method. Due to backwards compatibility
reasons it's not possible to slap the
| |
| isSensitive | back to summary |
|---|---|
| public boolean isSensitive() Implements io. Doc from io. Returns
| |
| replace | back to summary |
|---|---|
| public PemPrivateKey replace(ByteBuf content) Implements io. Doc from io. Returns a new
| |
| retain | back to summary |
|---|---|
| public PemPrivateKey retain() Overrides io. Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public PemPrivateKey retain(int increment) Overrides io. Implements io. Doc from io. Increases the reference count by the specified
| |
| retainedDuplicate | back to summary |
|---|---|
| public PemPrivateKey retainedDuplicate() Implements io. Doc from io. Duplicates this
| |
| toPEM | back to summary |
|---|---|
| pack-priv static PemEncoded toPEM(ByteBufAllocator allocator, boolean useDirect, PrivateKey key) Creates a | |
| toPEM | back to summary |
|---|---|
| pack-priv static PemEncoded toPEM(ByteBufAllocator allocator, boolean useDirect, byte[] bytes) | |
| touch | back to summary |
|---|---|
| public PemPrivateKey touch() Overrides io. Implements io. Doc from io. 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
| |
| touch | back to summary |
|---|---|
| public PemPrivateKey touch(Object hint) Implements io. Doc from io. 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
| |
| valueOf | back to summary |
|---|---|
| public static PemPrivateKey valueOf(byte[] key) Creates a | |
| valueOf | back to summary |
|---|---|
| public static PemPrivateKey valueOf(ByteBuf key) Creates a | |