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(Buffer)
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final byte[] | |
| private static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Buffer | content()
Implements io. Buffer with the PEM encoded contents of this value.
|
| public PemPrivateKey | |
| public void | |
| 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. Object has been destroyed.
|
| protected PemPrivateKey | receive(Buffer
The buf)Buffer that is received by the recipient,
and needs to be wrapped in a new BufferHolder instance.Implements abstract io. BufferHolder is received by the recipient.
|
| pack-priv static PemEncoded | |
| pack-priv static PemEncoded | |
| public static PemPrivateKey | |
| public static PemPrivateKey |
| BEGIN_PRIVATE_KEY | back to summary |
|---|---|
| private static final byte[] BEGIN_PRIVATE_KEY | |
| 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(Buffer content) | |
| content | back to summary |
|---|---|
| public Buffer content() Implements io. Doc from io. Returns the Note The returned buffer should not be closed directly.
Instead, | |
| copy | back to summary |
|---|---|
| public PemPrivateKey copy() Implements io. Doc from io. Return a copy of this PEM encoded value.
| |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides default javax. Doc from javax. Destroy this Sensitive information associated with 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. Doc from javax. Determine if this
| |
| receive | back to summary |
|---|---|
| protected PemPrivateKey receive(Buffer buf) Implements abstract io. Doc from io. Called when a sent
| |
| toPEM | back to summary |
|---|---|
| pack-priv static PemEncoded toPEM(PrivateKey key) Creates a | |
| toPEM | back to summary |
|---|---|
| pack-priv static PemEncoded toPEM(byte[] bytes) | |
| valueOf | back to summary |
|---|---|
| public static PemPrivateKey valueOf(byte[] key) Creates a | |
| valueOf | back to summary |
|---|---|
| public static PemPrivateKey valueOf(Buffer key) Creates a | |