Class RawKdfOptions
- java.lang.Object
-
- org.apache.sshd.common.config.keys.loader.openssh.kdf.RawKdfOptions
-
- All Implemented Interfaces:
OpenSSHKdfOptions,OpenSSHKeyDecryptor,NamedResource
public class RawKdfOptions extends Object implements OpenSSHKdfOptions
Generic options- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
Fields inherited from interface org.apache.sshd.common.config.keys.loader.openssh.OpenSSHKdfOptions
IS_NONE_KDF, MAX_KDF_NAME_LENGTH, MAX_KDF_OPTIONS_SIZE, NONE_KDF
-
-
Constructor Summary
Constructors Constructor Description RawKdfOptions()
-
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)booleanequals(Object obj)StringgetName()byte[]getOptions()inthashCode()voidinitialize(String name, byte[] kdfOptions)booleanisEncrypted()voidsetName(String name)voidsetOptions(byte[] options)StringtoString()
-
-
-
Method Detail
-
initialize
public void initialize(String name, byte[] kdfOptions) throws IOException
- Specified by:
initializein interfaceOpenSSHKdfOptions- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
setName
public void setName(String name)
-
getOptions
public byte[] getOptions()
-
setOptions
public void setOptions(byte[] options)
-
isEncrypted
public boolean isEncrypted()
- Specified by:
isEncryptedin interfaceOpenSSHKeyDecryptor
-
decodePrivateKeyBytes
public byte[] decodePrivateKeyBytes(SessionContext session, NamedResource resourceKey, String cipherName, byte[] privateDataBytes, String password) throws IOException, GeneralSecurityException
- Specified by:
decodePrivateKeyBytesin interfaceOpenSSHKeyDecryptor- Throws:
IOExceptionGeneralSecurityException
-
-