public static class ZAuth.SimplePlainAuth extends java.lang.Object implements ZAuth.Auth
| Modifier and Type | Field and Description |
|---|---|
private java.util.Properties |
passwords |
private java.io.File |
passwordsFile |
private long |
passwordsModified |
| Constructor and Description |
|---|
SimplePlainAuth() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(ZAuth.ZapRequest request,
boolean verbose)
Callback for authorizing a connection.
|
boolean |
configure(ZMsg msg,
boolean verbose)
Configures with ad-hoc message.
|
private void |
loadPasswords(boolean initial) |
private final java.util.Properties passwords
private java.io.File passwordsFile
private long passwordsModified
public boolean configure(ZMsg msg, boolean verbose)
ZAuth.Authconfigure in interface ZAuth.Authmsg - the configuration message.verbose - true if the actor is verbose.public boolean authorize(ZAuth.ZapRequest request, boolean verbose)
ZAuth.Authauthorize in interface ZAuth.Authprivate void loadPasswords(boolean initial)
throws java.io.IOException
java.io.IOException