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)
boolean
equals(Object obj)
String
getName()
byte[]
getOptions()
int
hashCode()
void
initialize(String name, byte[] kdfOptions)
boolean
isEncrypted()
void
setName(String name)
void
setOptions(byte[] options)
String
toString()
-
-
-
Method Detail
-
initialize
public void initialize(String name, byte[] kdfOptions) throws IOException
- Specified by:
initialize
in interfaceOpenSSHKdfOptions
- Throws:
IOException
-
getName
public String getName()
- Specified by:
getName
in 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:
isEncrypted
in interfaceOpenSSHKeyDecryptor
-
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
-
-