Class UsernameAndPassword

  • All Implemented Interfaces:

    public class UsernameAndPassword
    extends java.lang.Object
    implements Credentials
    A combination of username and password to use when authenticating a browser with a website.
    • Constructor Summary

      Constructor Description
      UsernameAndPassword​(java.lang.String username, java.lang.String password)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Supplier<Credentials> of​(java.lang.String username, java.lang.String password)  
      java.lang.String password()  
      java.lang.String username()  
      • Methods inherited from class java.lang.Object

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

      • UsernameAndPassword

        public UsernameAndPassword​(java.lang.String username,
                                   java.lang.String password)
    • Method Detail

      • of

        public static java.util.function.Supplier<Credentials> of​(java.lang.String username,
                                                                  java.lang.String password)
      • username

        public java.lang.String username()
      • password

        public java.lang.String password()