public class RawKdfOptions extends Object implements OpenSSHKdfOptions
IS_NONE_KDF, MAX_KDF_NAME_LENGTH, MAX_KDF_OPTIONS_SIZE, NONE_KDF
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Constructor and Description |
---|
RawKdfOptions() |
Modifier and Type | Method and 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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByName
public void initialize(String name, byte[] kdfOptions) throws IOException
initialize
in interface OpenSSHKdfOptions
IOException
public String getName()
getName
in interface NamedResource
public void setName(String name)
public byte[] getOptions()
public void setOptions(byte[] options)
public boolean isEncrypted()
isEncrypted
in interface OpenSSHKeyDecryptor
public byte[] decodePrivateKeyBytes(SessionContext session, NamedResource resourceKey, String cipherName, byte[] privateDataBytes, String password) throws IOException, GeneralSecurityException
decodePrivateKeyBytes
in interface OpenSSHKeyDecryptor
IOException
GeneralSecurityException
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.