Class RawKdfOptions
java.lang.Object
org.apache.sshd.common.config.keys.loader.openssh.kdf.RawKdfOptions
- All Implemented Interfaces:
OpenSSHKdfOptions
,OpenSSHKeyDecryptor
,NamedResource
Generic options
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decodePrivateKeyBytes
(SessionContext session, NamedResource resourceKey, CipherFactory cipherSpec, byte[] privateDataBytes, String password) boolean
getName()
byte[]
int
hashCode()
void
initialize
(String name, byte[] kdfOptions) boolean
void
void
setOptions
(byte[] options) toString()
-
Field Details
-
name
-
options
private byte[] options
-
-
Constructor Details
-
RawKdfOptions
public RawKdfOptions()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceOpenSSHKdfOptions
- Throws:
IOException
-
getName
- Specified by:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
setName
-
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, CipherFactory cipherSpec, byte[] privateDataBytes, String password) throws IOException, GeneralSecurityException - Specified by:
decodePrivateKeyBytes
in interfaceOpenSSHKeyDecryptor
- Throws:
IOException
GeneralSecurityException
-
hashCode
public int hashCode() -
equals
-
toString
-