public class OpenSSHParserContext extends Object implements OpenSSHKeyDecryptor
| Modifier and Type | Field and Description |
|---|---|
static Predicate<String> |
IS_NONE_CIPHER |
static String |
NONE_CIPHER |
| Constructor and Description |
|---|
OpenSSHParserContext() |
OpenSSHParserContext(String cipherName,
OpenSSHKdfOptions kdfOptions) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decodePrivateKeyBytes(SessionContext session,
NamedResource resourceKey,
String cipherName,
byte[] privateDataBytes,
String password) |
String |
getCipherName() |
OpenSSHKdfOptions |
getKdfOptions() |
boolean |
isEncrypted() |
void |
setCipherName(String cipherName) |
void |
setKdfOptions(OpenSSHKdfOptions kdfOptions) |
String |
toString() |
public static final String NONE_CIPHER
public OpenSSHParserContext()
public OpenSSHParserContext(String cipherName, OpenSSHKdfOptions kdfOptions)
public boolean isEncrypted()
isEncrypted in interface OpenSSHKeyDecryptorpublic String getCipherName()
public void setCipherName(String cipherName)
public OpenSSHKdfOptions getKdfOptions()
public void setKdfOptions(OpenSSHKdfOptions kdfOptions)
public byte[] decodePrivateKeyBytes(SessionContext session, NamedResource resourceKey, String cipherName, byte[] privateDataBytes, String password) throws IOException, GeneralSecurityException
decodePrivateKeyBytes in interface OpenSSHKeyDecryptorIOExceptionGeneralSecurityExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.