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_EXTRACTORFields 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) booleangetName()byte[]inthashCode()voidinitialize(String name, byte[] kdfOptions) booleanvoidvoidsetOptions(byte[] options) toString()
-
Field Details
-
name
-
options
private byte[] options
-
-
Constructor Details
-
RawKdfOptions
public RawKdfOptions()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceOpenSSHKdfOptions- Throws:
IOException
-
getName
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
setName
-
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, CipherFactory cipherSpec, byte[] privateDataBytes, String password) throws IOException, GeneralSecurityException - Specified by:
decodePrivateKeyBytesin interfaceOpenSSHKeyDecryptor- Throws:
IOExceptionGeneralSecurityException
-
hashCode
public int hashCode() -
equals
-
toString
-