Package org.zeromq
Class ZAuth.SimplePlainAuth
java.lang.Object
org.zeromq.ZAuth.SimplePlainAuth
- All Implemented Interfaces:
ZAuth.Auth
- Enclosing class:
- ZAuth
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
authorize
(ZAuth.ZapRequest request, boolean verbose) Callback for authorizing a connection.boolean
Configures with ad-hoc message.private void
loadPasswords
(boolean initial)
-
Field Details
-
passwords
-
passwordsFile
-
passwordsModified
private long passwordsModified
-
-
Constructor Details
-
SimplePlainAuth
public SimplePlainAuth()
-
-
Method Details
-
configure
Description copied from interface:ZAuth.Auth
Configures with ad-hoc message.- Specified by:
configure
in interfaceZAuth.Auth
- Parameters:
msg
- the configuration message.verbose
- true if the actor is verbose.- Returns:
- true if correctly configured, otherwise false.
-
authorize
Description copied from interface:ZAuth.Auth
Callback for authorizing a connection.- Specified by:
authorize
in interfaceZAuth.Auth
- Returns:
- true if the connection is authorized, false otherwise.
-
loadPasswords
- Throws:
IOException
-