public class DefaultSecurityPolicy extends Object implements SecurityPolicy
Constructor and Description |
---|
DefaultSecurityPolicy(SecurityLevel minimumSecurity,
boolean managedSecurity) |
DefaultSecurityPolicy(SecurityLevel minimumSecurity,
boolean managedSecurity,
boolean dropSecurityAsLastResort) |
Modifier and Type | Method and Description |
---|---|
void |
configure(String... matches) |
SecurityLevel |
getMinimumSecurityLevel() |
boolean |
isDropSecurityAsLastResort() |
boolean |
isManagedSecurity() |
void |
onIncompatibleSecurity(String host,
int port,
String remoteIdentification,
IncompatibleAlgorithm... reports) |
public DefaultSecurityPolicy(SecurityLevel minimumSecurity, boolean managedSecurity)
public DefaultSecurityPolicy(SecurityLevel minimumSecurity, boolean managedSecurity, boolean dropSecurityAsLastResort)
public SecurityLevel getMinimumSecurityLevel()
getMinimumSecurityLevel
in interface SecurityPolicy
public boolean isManagedSecurity()
isManagedSecurity
in interface SecurityPolicy
public boolean isDropSecurityAsLastResort()
isDropSecurityAsLastResort
in interface SecurityPolicy
public void onIncompatibleSecurity(String host, int port, String remoteIdentification, IncompatibleAlgorithm... reports)
onIncompatibleSecurity
in interface SecurityPolicy
public void configure(String... matches) throws SshException
configure
in interface SecurityPolicy
SshException
Copyright © 2024. All rights reserved.