Package org.zeromq

Class ZAuth.SimpleCurveAuth

  • All Implemented Interfaces:
    ZAuth.Auth
    Enclosing class:
    ZAuth

    public static class ZAuth.SimpleCurveAuth
    extends java.lang.Object
    implements ZAuth.Auth
    • Constructor Detail

      • SimpleCurveAuth

        public SimpleCurveAuth()
    • Method Detail

      • configure

        public boolean configure​(ZMsg configuration,
                                 boolean verbose)
        Description copied from interface: ZAuth.Auth
        Configures with ad-hoc message.
        Specified by:
        configure in interface ZAuth.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.Auth
        Callback for authorizing a connection.
        Specified by:
        authorize in interface ZAuth.Auth
        Returns:
        true if the connection is authorized, false otherwise.