Package org.zeromq

Class ZAuth.SimplePlainAuth

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

    public static class ZAuth.SimplePlainAuth
    extends java.lang.Object
    implements ZAuth.Auth
    • Constructor Summary

      Constructors 
      Constructor Description
      SimplePlainAuth()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • passwords

        private final java.util.Properties passwords
      • passwordsFile

        private java.io.File passwordsFile
      • passwordsModified

        private long passwordsModified
    • Constructor Detail

      • SimplePlainAuth

        public SimplePlainAuth()
    • Method Detail

      • configure

        public boolean configure​(ZMsg msg,
                                 boolean verbose)
        Description copied from interface: ZAuth.Auth
        Configures with ad-hoc message.
        Specified by:
        configure in interface ZAuth.Auth
        Parameters:
        msg - 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.
      • loadPasswords

        private void loadPasswords​(boolean initial)
                            throws java.io.IOException
        Throws:
        java.io.IOException