Class AbstractAuthenticable

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.PasswordAuthentication getPasswordAuthentication​(java.lang.String prompt)
      Determines password information in relation to a given description.
      java.net.PasswordAuthentication getPasswordAuthentication​(java.net.URI uri, java.lang.String prompt)
      Determines password information in relation to a given URI and description.
      • Methods inherited from class java.lang.Object

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

      • AbstractAuthenticable

        public AbstractAuthenticable()
    • Method Detail

      • getPasswordAuthentication

        public java.net.PasswordAuthentication getPasswordAuthentication​(java.lang.String prompt)
        Determines password information in relation to a given description. This version delegates to getPasswordAuthentication(URI, String).
        Specified by:
        getPasswordAuthentication in interface Authenticable
        Parameters:
        prompt - A description of the authentication.
        Returns:
        The password authentication collected from the user, or null if none is provided.
      • getPasswordAuthentication

        public java.net.PasswordAuthentication getPasswordAuthentication​(java.net.URI uri,
                                                                         java.lang.String prompt)
        Determines password information in relation to a given URI and description. This version delegates to Authenticable.getPasswordAuthentication(URI, String, String).
        Specified by:
        getPasswordAuthentication in interface Authenticable
        Parameters:
        uri - The URI for which authentication is requested, or null if there is no relevant URI.
        prompt - A description of the authentication.
        Returns:
        The password authentication collected from the user, or null if none is provided.