java.security.PrivateKey for RSA keys which uses BoringSSL to
perform all the operations.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv transient boolean | |
| pack-priv transient OpenSSLKey | |
| pack-priv BigInteger | |
| pack-priv BigInteger | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final synchronized void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public final String | getAlgorithm()
Implements java. |
| public final byte[] | getEncoded()
Implements java. null
if this key does not support encoding.
|
| public final String | getFormat()
Implements java. null if this key does not support encoding.
|
| pack-priv static OpenSSLRSAPrivateKey | |
| pack-priv static OpenSSLKey | |
| public final BigInteger | |
| public OpenSSLKey | |
| public final BigInteger | getPrivateExponent()
Implements java. |
| public int | |
| private static OpenSSLKey | |
| private void | |
| pack-priv void | |
| public String | |
| pack-priv static OpenSSLKey | wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, PublicKey publicKey)
Wraps the provided private key for use in the TLS/SSL stack only. |
| pack-priv static OpenSSLKey | |
| private void |
| fetchedParams | back to summary |
|---|---|
| pack-priv transient boolean fetchedParams | |
| key | back to summary |
|---|---|
| pack-priv transient OpenSSLKey key | |
| modulus | back to summary |
|---|---|
| pack-priv BigInteger modulus | |
| privateExponent | back to summary |
|---|---|
| pack-priv BigInteger privateExponent | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| OpenSSLRSAPrivateKey | back to summary |
|---|---|
| pack-priv OpenSSLRSAPrivateKey(OpenSSLKey key) | |
| OpenSSLRSAPrivateKey | back to summary |
|---|---|
| pack-priv OpenSSLRSAPrivateKey(OpenSSLKey key, byte[][] params) | |
| OpenSSLRSAPrivateKey | back to summary |
|---|---|
| public OpenSSLRSAPrivateKey(RSAPrivateKeySpec rsaKeySpec) throws InvalidKeySpecException | |
| ensureReadParams | back to summary |
|---|---|
| pack-priv final synchronized void ensureReadParams() | |
| 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. | |
| getAlgorithm | back to summary |
|---|---|
| public final 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 final byte[] getEncoded() Implements java. Doc from java. Returns the key in its primary encoding format, or
| |
| getFormat | back to summary |
|---|---|
| public final String getFormat() Implements java. Doc from java. Returns the name of the primary encoding format of this key,
or | |
| getInstance | back to summary |
|---|---|
| pack-priv static OpenSSLRSAPrivateKey getInstance(OpenSSLKey key) | |
| getInstance | back to summary |
|---|---|
| pack-priv static OpenSSLKey getInstance(RSAPrivateKey rsaPrivateKey) throws InvalidKeyException | |
| getModulus | back to summary |
|---|---|
| public final BigInteger getModulus() Implements java. Doc from java. Returns the modulus.
| |
| getOpenSSLKey | back to summary |
|---|---|
| public OpenSSLKey getOpenSSLKey() Implements org.
| |
| getPrivateExponent | back to summary |
|---|---|
| public final BigInteger getPrivateExponent() Implements java. Doc from java. Returns the private exponent.
| |
| 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
| |
| init | back to summary |
|---|---|
| private static OpenSSLKey init(RSAPrivateKeySpec rsaKeySpec) throws InvalidKeySpecException | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException | |
| readParams | back to summary |
|---|---|
| pack-priv void readParams(byte[][] params) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| wrapJCAPrivateKeyForTLSStackOnly | back to summary |
|---|---|
| pack-priv 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 | |
| wrapPlatformKey | back to summary |
|---|---|
| pack-priv static OpenSSLKey wrapPlatformKey(RSAPrivateKey rsaPrivateKey) throws InvalidKeyException | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream stream) throws IOException | |