Class OpenSSHParserContext
java.lang.Object
org.apache.sshd.common.config.keys.loader.openssh.OpenSSHParserContext
- All Implemented Interfaces:
OpenSSHKeyDecryptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decodePrivateKeyBytes
(SessionContext session, NamedResource resourceKey, String cipherName, byte[] privateDataBytes, String password) boolean
void
setCipherName
(String cipherName) void
setKdfOptions
(OpenSSHKdfOptions kdfOptions) toString()
-
Field Details
-
NONE_CIPHER
- See Also:
-
IS_NONE_CIPHER
-
cipherName
-
kdfOptions
-
-
Constructor Details
-
OpenSSHParserContext
public OpenSSHParserContext() -
OpenSSHParserContext
-
-
Method Details
-
isEncrypted
public boolean isEncrypted()- Specified by:
isEncrypted
in interfaceOpenSSHKeyDecryptor
-
getCipherName
-
setCipherName
-
getKdfOptions
-
setKdfOptions
-
decodePrivateKeyBytes
public byte[] decodePrivateKeyBytes(SessionContext session, NamedResource resourceKey, String cipherName, byte[] privateDataBytes, String password) throws IOException, GeneralSecurityException - Specified by:
decodePrivateKeyBytes
in interfaceOpenSSHKeyDecryptor
- Throws:
IOException
GeneralSecurityException
-
toString
-