PublicKey
PrivateKey
| Modifier and Type | Method and Description |
|---|---|
| public default PRV | decodePrivateKey(SessionContext
The session, FilePasswordProvider SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).The passwordProvider, byte... FilePasswordProvider to use in case the data is encrypted - may be
null if no encrypted data is expectedThe key data bytes in keyData)OpenSSH format (after BASE64 decoding) - ignored
if null/empty
|
| public default PRV | decodePrivateKey(SessionContext session, FilePasswordProvider passwordProvider, byte[] keyData, int offset, int length)
|
| public default PRV | decodePrivateKey(SessionContext session, FilePasswordProvider passwordProvider, InputStream keyData)
|
| public PRV | Returns: The decodedPrivateKeyThe 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)
|
| public default String | encodePrivateKey(SecureByteArrayOutputStream
The s, PRV SecureByteArrayOutputStream to write the data to.The key, PUB PrivateKey - may not be nullThe pubKey)PublicKey belonging to the private key - must be non-null if
public key recovery is not supportedEncodes the |
| public default boolean | |
| public default PUB | |
| public default PrivateKey | resolve(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 keyType, byte[] OpenSSH reported key typeThe keyData)OpenSSH encoded key dataImplements org.
|
| decodePrivateKey | back to summary |
|---|---|
public default PRV decodePrivateKey(SessionContext session, FilePasswordProvider passwordProvider, byte... keyData) throws IOException, GeneralSecurityException
| |
| decodePrivateKey | back to summary |
|---|---|
| public default PRV decodePrivateKey(SessionContext session, FilePasswordProvider passwordProvider, byte[] keyData, int offset, int length) throws IOException, GeneralSecurityException | |
| decodePrivateKey | back to summary |
|---|---|
| public default PRV decodePrivateKey(SessionContext session, FilePasswordProvider passwordProvider, InputStream keyData) throws IOException, GeneralSecurityException | |
| decodePrivateKey | back to summary |
|---|---|
public PRV decodePrivateKey(SessionContext session, String keyType, FilePasswordProvider passwordProvider, InputStream keyData) throws IOException, GeneralSecurityException
| |
| encodePrivateKey | back to summary |
|---|---|
| public default String encodePrivateKey(SecureByteArrayOutputStream s, PRV key, PUB pubKey) throws IOException Encodes the
| |
| isPublicKeyRecoverySupported | back to summary |
|---|---|
| public default boolean isPublicKeyRecoverySupported() | |
| recoverPublicKey | back to summary |
|---|---|
| public default PUB recoverPublicKey(PRV prvKey) throws GeneralSecurityException Attempts to recover the public key given the private one
| |