Class OpenSSHParserContext
- java.lang.Object
-
- org.apache.sshd.common.config.keys.loader.openssh.OpenSSHParserContext
-
- All Implemented Interfaces:
OpenSSHKeyDecryptor
public class OpenSSHParserContext extends Object implements OpenSSHKeyDecryptor
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static Predicate<String>
IS_NONE_CIPHER
static String
NONE_CIPHER
-
Constructor Summary
Constructors Constructor Description OpenSSHParserContext()
OpenSSHParserContext(String cipherName, OpenSSHKdfOptions kdfOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
NONE_CIPHER
public static final String NONE_CIPHER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OpenSSHParserContext
public OpenSSHParserContext()
-
OpenSSHParserContext
public OpenSSHParserContext(String cipherName, OpenSSHKdfOptions kdfOptions)
-
-
Method Detail
-
isEncrypted
public boolean isEncrypted()
- Specified by:
isEncrypted
in interfaceOpenSSHKeyDecryptor
-
getCipherName
public String getCipherName()
-
setCipherName
public void setCipherName(String cipherName)
-
getKdfOptions
public OpenSSHKdfOptions getKdfOptions()
-
setKdfOptions
public void setKdfOptions(OpenSSHKdfOptions kdfOptions)
-
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
-
-