public class AdaptiveConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CIPHERS |
static String |
COMPRESSION |
static String |
DROP_SECURITY_AS_LAST_RESORT |
static String |
KEY_EXCHANGE |
static String |
MACS |
static String |
MANAGED_SECURITY |
static String |
PUBLIC_KEYS |
static String |
SECURITY_LEVEL |
Constructor and Description |
---|
AdaptiveConfiguration() |
Modifier and Type | Method and Description |
---|---|
static String |
createAlgorithmList(ComponentFactory<?> factory,
String key,
String contextPreference,
String ident,
String hostname,
String... ignores) |
static String |
createAlgorithmList(String supportedList,
String key,
String ident,
String hostname,
String... ignores) |
static String |
csv(ComponentFactory<?> algs,
SecurityLevel level) |
static boolean |
getBoolean(String key,
boolean defaultValue,
String... match) |
static boolean |
getBooleanOrDefault(String key,
boolean defaultValue) |
static long |
getByteSize(String key,
String defaultValue,
String... match) |
static String |
getGlobalConfig(String key) |
static String |
getIdent(String remoteIdentification) |
static int |
getInt(String key,
int defaultValue,
String... match) |
static long |
getLong(String key,
Long defaultValue,
String... match) |
static String |
getPatternConfig(String key,
String... values) |
static String |
getProperty(String key,
String defaultValue,
String... match) |
static String |
getSecurityLevel(SecurityLevel securityLevel,
String configurationDirective,
ComponentFactory<?> factory) |
static void |
loadConfiguration(InputStream in) |
static void |
resetConfiguration() |
static void |
saveConfig() |
static void |
saveMatchingConfiguration(String match,
String keyexchange,
String publickey,
String cipher,
String mac,
String compression) |
static void |
setBoolean(String key,
String pattern) |
static void |
setBoolean(String key,
String pattern,
Boolean val) |
static void |
setGlobalConfig(String key,
boolean value) |
static void |
setGlobalConfig(String key,
int val) |
static void |
setGlobalConfig(String key,
long val) |
static void |
setGlobalConfig(String key,
String val) |
static void |
setPatternConfig(String pattern,
String key,
boolean val) |
static void |
setPatternConfig(String pattern,
String key,
int val) |
static void |
setPatternConfig(String pattern,
String key,
long val) |
static void |
setPatternConfig(String pattern,
String key,
String val) |
public static final String KEY_EXCHANGE
public static final String PUBLIC_KEYS
public static final String CIPHERS
public static final String MACS
public static final String COMPRESSION
public static final String SECURITY_LEVEL
public static final String MANAGED_SECURITY
public static final String DROP_SECURITY_AS_LAST_RESORT
public static void resetConfiguration() throws IOException, SshException
IOException
SshException
public static void saveMatchingConfiguration(String match, String keyexchange, String publickey, String cipher, String mac, String compression) throws IOException
IOException
public static void saveConfig() throws IOException
IOException
public static void loadConfiguration(InputStream in) throws IOException
IOException
public static String createAlgorithmList(String supportedList, String key, String ident, String hostname, String... ignores)
public static String createAlgorithmList(ComponentFactory<?> factory, String key, String contextPreference, String ident, String hostname, String... ignores)
public static void setGlobalConfig(String key, int val)
public static void setGlobalConfig(String key, long val)
public static void setGlobalConfig(String key, boolean value)
public static boolean getBooleanOrDefault(String key, boolean defaultValue)
public static String getSecurityLevel(SecurityLevel securityLevel, String configurationDirective, ComponentFactory<?> factory) throws SshException
SshException
public static String csv(ComponentFactory<?> algs, SecurityLevel level) throws SshException
SshException
Copyright © 2024. All rights reserved.