public class AdaptiveConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_FORWARDING |
static String |
BANNER
Authentication directives
|
static String |
CIPHERS |
static String |
COMPRESSION |
static String |
DROP_SECURITY_AS_LAST_RESORT |
static String |
ENABLE_SCP |
static String |
GATEWAY_FORWARDING
Forwarding directives
|
static String |
HOST_KEY
Host key directives
|
static String |
KEY_EXCHANGE |
static String |
LISTEN_ADDRESS |
static String |
MACS |
static String |
MANAGED_SECURITY |
static String |
PASSWORD_AUTHENTICATION |
static String |
PERMITTED_FORWARDING |
static String |
PORT |
static String |
PUBKEY_AUTHENTICATION |
static String |
PUBLIC_KEYS |
static String |
REQUIRED_AUTHENTICATION |
static String |
SECURITY_LEVEL |
static String |
USER |
Constructor and Description |
---|
AdaptiveConfiguration() |
Modifier and Type | Method and Description |
---|---|
static void |
clearPatternConfig(String pattern) |
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[] |
getMultipleConfig(String key) |
static int[] |
getMultipleIntConfig(String key) |
static String |
getPatternConfig(String key,
String... values) |
static String |
getProperty(String key,
String defaultValue,
String... match) |
static SecurityLevel |
getSecurityLevel() |
static String |
getSecurityLevel(SecurityLevel securityLevel,
String configurationDirective,
ComponentFactory<?> factory) |
static void |
loadConfiguration(InputStream in) |
static void |
loadConfiguration(String config) |
static void |
loadConfiguration(String config,
String charset) |
static void |
parsePatternConfig(String pattern,
String config) |
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 final String GATEWAY_FORWARDING
public static final String ALLOW_FORWARDING
public static final String PERMITTED_FORWARDING
public static final String HOST_KEY
public static final String PORT
public static final String LISTEN_ADDRESS
public static final String BANNER
public static final String USER
public static final String PASSWORD_AUTHENTICATION
public static final String PUBKEY_AUTHENTICATION
public static final String ENABLE_SCP
public static final String REQUIRED_AUTHENTICATION
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(String config) throws IOException
IOException
public static void loadConfiguration(String config, String charset) 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 clearPatternConfig(String pattern)
public static void parsePatternConfig(String pattern, String config) throws IOException
IOException
public static int[] getMultipleIntConfig(String key)
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
public static SecurityLevel getSecurityLevel()
Copyright © 2024. All rights reserved.