| Modifier and Type | Field and Description |
|---|---|
| public static final BigInteger | |
| public static final OpenSSHRSAPrivateKeyDecoder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RSAPrivateKey | clonePrivateKey(RSAPrivateKey
The key)PrivateKey to clone - ignored if nullImplements org.
|
| public RSAPublicKey | clonePublicKey(RSAPublicKey
The key)PublicKey to clone - ignored if nullImplements org.
|
| public RSAPrivateKey | decodePrivateKey(SessionContext
The session, String SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).The reported / encode key type keyType, FilePasswordProvider The passwordProvider, InputStream FilePasswordProvider to use in case the data is encrypted - may be
null if no encrypted data is expectedThe key data bytes stream positioned after the key type decoding and making sure
it is one of the supported types keyData)Implements org.
|
| public String | encodePrivateKey(SecureByteArrayOutputStream
The s, RSAPrivateKey SecureByteArrayOutputStream to write the data to.The key, RSAPublicKey PrivateKey - may not be nullThe pubKey)PublicKey belonging to the private key - must be non-null if
public key recovery is not supportedOverrides default org. Encodes the |
| public KeyFactory | |
| public KeyPairGenerator | |
| public boolean | |
| public RSAPublicKey | recoverPublicKey(RSAPrivateKey
The privateKey)PrivateKeyOverrides default org. Attempts to recover the public key given the private one |
| DEFAULT_PUBLIC_EXPONENT | back to summary |
|---|---|
| public static final BigInteger DEFAULT_PUBLIC_EXPONENT | |
| INSTANCE | back to summary |
|---|---|
| public static final OpenSSHRSAPrivateKeyDecoder INSTANCE | |
| OpenSSHRSAPrivateKeyDecoder | back to summary |
|---|---|
| public OpenSSHRSAPrivateKeyDecoder() | |
| clonePrivateKey | back to summary |
|---|---|
| public RSAPrivateKey clonePrivateKey(RSAPrivateKey key) throws GeneralSecurityException Implements org.
| |
| clonePublicKey | back to summary |
|---|---|
| public RSAPublicKey clonePublicKey(RSAPublicKey key) throws GeneralSecurityException Implements org.
| |
| encodePrivateKey | back to summary |
|---|---|
| public String encodePrivateKey(SecureByteArrayOutputStream s, RSAPrivateKey key, RSAPublicKey pubKey) throws IOException Overrides default org. Doc from org. Encodes the
| |
| getKeyFactoryInstance | back to summary |
|---|---|
| public KeyFactory getKeyFactoryInstance() throws GeneralSecurityException Implements org.
| |
| getKeyPairGenerator | back to summary |
|---|---|
| public KeyPairGenerator getKeyPairGenerator() throws GeneralSecurityException Implements org.
| |
| isPublicKeyRecoverySupported | back to summary |
|---|---|
| public boolean isPublicKeyRecoverySupported() Overrides default org.
| |
| recoverPublicKey | back to summary |
|---|---|
| public RSAPublicKey recoverPublicKey(RSAPrivateKey privateKey) throws GeneralSecurityException Overrides default org. Doc from org. Attempts to recover the public key given the private one
| |