public class AllowAfterAuth extends AbstractFirewall
This is primarily useful for testing.
Modifier and Type | Field and Description |
---|---|
static java.util.function.Supplier<Firewall> |
SUPPLIER
AllowAfterAuth supplier.
|
auth, log
Constructor and Description |
---|
AllowAfterAuth() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(java.lang.String creds)
Authenticates peer using specified credentials.
|
void |
signoff()
Called when the connection is closed.
|
permit, permit
public static final java.util.function.Supplier<Firewall> SUPPLIER
public boolean authenticate(java.lang.String creds)
Firewall
creds
- credentials, or null if logging out.public void signoff()
Firewall
Firewall
instance should perform cleanup.