EVP_PKEY.
| Modifier and Type | Field and Description |
|---|---|
| private final NativeRef. | |
| private final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| pack-priv static OpenSSLKey | fromECPrivateKeyForTLSStackOnly(PrivateKey
private key. key, ECParameterSpec EC parameters ecParams)null if not available. Some opaque private keys cannot
be used by the TLS/SSL stack without the parameters because the private key itself
might not expose the parameters.Gets an |
| private static OpenSSLKey | Returns: instance ornull if the key does not export its key material in a
suitable format.Gets an |
| pack-priv static OpenSSLKey | |
| pack-priv static OpenSSLKey | fromPrivateKeyForTLSStackOnly(PrivateKey
private key. privateKey, PublicKey corresponding public key or publicKey)null if not available. Some opaque
private keys cannot be used by the TLS/SSL stack without the public key.Gets an |
| pack-priv static OpenSSLKey | fromPrivateKeyPemInputStream(InputStream is)
Parse a private key in PEM encoding from the provided input stream. |
| pack-priv static OpenSSLKey | |
| pack-priv static OpenSSLKey | fromPublicKeyPemInputStream(InputStream is)
Parse a public key in PEM encoding from the provided input stream. |
| pack-priv NativeRef. | |
| private static OpenSSLKey | Returns: instance ornull if the key is not backed by OpenSSL's
EVP_PKEY.Gets the |
| pack-priv PrivateKey | |
| pack-priv static PrivateKey | |
| pack-priv PublicKey | |
| pack-priv static PublicKey | |
| public int | |
| pack-priv boolean | |
| pack-priv boolean | |
| private static OpenSSLKey | wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, PublicKey publicKey)
Wraps the provided private key for use in the TLS/SSL stack only. |
| private static OpenSSLKey |
| ctx | back to summary |
|---|---|
| private final NativeRef. | |
| hardwareBacked | back to summary |
|---|---|
| private final boolean hardwareBacked | |
| wrapped | back to summary |
|---|---|
| private final boolean wrapped | |
| OpenSSLKey | back to summary |
|---|---|
| pack-priv OpenSSLKey(long ctx) | |
| OpenSSLKey | back to summary |
|---|---|
| pack-priv OpenSSLKey(long ctx, boolean wrapped) | |
| OpenSSLKey | back to summary |
|---|---|
| pack-priv OpenSSLKey(long ctx, boolean wrapped, boolean hardwareBacked) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fromECPrivateKeyForTLSStackOnly | back to summary |
|---|---|
| pack-priv static OpenSSLKey fromECPrivateKeyForTLSStackOnly(PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException Gets an
| |
| fromKeyMaterial | back to summary |
|---|---|
| private static OpenSSLKey fromKeyMaterial(PrivateKey key) throws InvalidKeyException Gets an
| |
| fromPrivateKey | back to summary |
|---|---|
| pack-priv static OpenSSLKey fromPrivateKey(PrivateKey key) throws InvalidKeyException | |
| fromPrivateKeyForTLSStackOnly | back to summary |
|---|---|
| pack-priv static OpenSSLKey fromPrivateKeyForTLSStackOnly(PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException Gets an
| |
| fromPrivateKeyPemInputStream | back to summary |
|---|---|
| pack-priv static OpenSSLKey fromPrivateKeyPemInputStream(InputStream is) throws InvalidKeyException Parse a private key in PEM encoding from the provided input stream.
| |
| fromPublicKey | back to summary |
|---|---|
| pack-priv static OpenSSLKey fromPublicKey(PublicKey key) throws InvalidKeyException | |
| fromPublicKeyPemInputStream | back to summary |
|---|---|
| pack-priv static OpenSSLKey fromPublicKeyPemInputStream(InputStream is) throws InvalidKeyException Parse a public key in PEM encoding from the provided input stream.
| |
| getNativeRef | back to summary |
|---|---|
| pack-priv NativeRef. Returns the EVP_PKEY context for use in JNI calls. | |
| getOpenSSLKey | back to summary |
|---|---|
| private static OpenSSLKey getOpenSSLKey(PrivateKey key) Gets the
| |
| getPrivateKey | back to summary |
|---|---|
| pack-priv PrivateKey getPrivateKey() throws NoSuchAlgorithmException | |
| getPrivateKey | back to summary |
|---|---|
| pack-priv static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) throws InvalidKeySpecException | |
| getPublicKey | back to summary |
|---|---|
| pack-priv PublicKey getPublicKey() throws NoSuchAlgorithmException | |
| getPublicKey | back to summary |
|---|---|
| pack-priv static PublicKey getPublicKey(X509EncodedKeySpec keySpec, int type) throws InvalidKeySpecException | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isHardwareBacked | back to summary |
|---|---|
| pack-priv boolean isHardwareBacked() | |
| isWrapped | back to summary |
|---|---|
| pack-priv boolean isWrapped() | |
| wrapJCAPrivateKeyForTLSStackOnly | back to summary |
|---|---|
| private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException Wraps the provided private key for use in the TLS/SSL stack only. Sign/decrypt operations
using the key will be delegated to the | |
| wrapPrivateKey | back to summary |
|---|---|
| private static OpenSSLKey wrapPrivateKey(PrivateKey key) throws InvalidKeyException | |