Package org.zeromq
Class ZAuth.SimpleCurveAuth
- java.lang.Object
-
- org.zeromq.ZAuth.SimpleCurveAuth
-
- All Implemented Interfaces:
ZAuth.Auth
- Enclosing class:
- ZAuth
public static class ZAuth.SimpleCurveAuth extends java.lang.Object implements ZAuth.Auth
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowAnyprivate ZCertStorecertStoreprivate ZCertStore.Fingerprinterfingerprinter
-
Constructor Summary
Constructors Constructor Description SimpleCurveAuth()SimpleCurveAuth(ZCertStore.Fingerprinter fingerprinter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthorize(ZAuth.ZapRequest request, boolean verbose)Callback for authorizing a connection.booleanconfigure(ZMsg configuration, boolean verbose)Configures with ad-hoc message.
-
-
-
Field Detail
-
fingerprinter
private final ZCertStore.Fingerprinter fingerprinter
-
certStore
private ZCertStore certStore
-
allowAny
private boolean allowAny
-
-
Constructor Detail
-
SimpleCurveAuth
public SimpleCurveAuth()
-
SimpleCurveAuth
public SimpleCurveAuth(ZCertStore.Fingerprinter fingerprinter)
-
-
Method Detail
-
configure
public boolean configure(ZMsg configuration, boolean verbose)
Description copied from interface:ZAuth.AuthConfigures with ad-hoc message.- Specified by:
configurein interfaceZAuth.Auth- Parameters:
configuration- the configuration message.verbose- true if the actor is verbose.- Returns:
- true if correctly configured, otherwise false.
-
authorize
public boolean authorize(ZAuth.ZapRequest request, boolean verbose)
Description copied from interface:ZAuth.AuthCallback for authorizing a connection.- Specified by:
authorizein interfaceZAuth.Auth- Returns:
- true if the connection is authorized, false otherwise.
-
-