Class BrokerBasicAuthIdentity


  • public class BrokerBasicAuthIdentity
    extends java.lang.Object
    This class is a data structure used to describe a broker's Basic auth configuration.
    • Constructor Detail

      • BrokerBasicAuthIdentity

        public BrokerBasicAuthIdentity()
      • BrokerBasicAuthIdentity

        public BrokerBasicAuthIdentity​(java.lang.String userName,
                                       java.lang.String password)
    • Method Detail

      • getUserName

        public java.lang.String getUserName()
      • setUserName

        public void setUserName​(java.lang.String userName)
      • setPassword

        public void setPassword​(java.lang.String password)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • createFromString

        public static BrokerBasicAuthIdentity createFromString​(java.lang.String protocol_string)
        Parse protocol representation. Returns null if the basic auth configuration isn't set to anything.
      • toString

        public java.lang.String toString()
        Convert to a string.
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(int indent_level)
        Convert to a string. The "indent_level" is the number of 4-space indents that the output should be generated for.