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 SecurityPolicypublic boolean isManagedSecurity()
isManagedSecurity in interface SecurityPolicypublic boolean isDropSecurityAsLastResort()
isDropSecurityAsLastResort in interface SecurityPolicypublic void onIncompatibleSecurity(String host, int port, String remoteIdentification, IncompatibleAlgorithm... reports)
onIncompatibleSecurity in interface SecurityPolicypublic void configure(String... matches) throws SshException
configure in interface SecurityPolicySshExceptionCopyright © 2025. All rights reserved.