org.cyberlab.support
Class UrlAuthentication

java.lang.Object
  extended by java.net.Authenticator
      extended by org.cyberlab.support.UrlAuthentication

public class UrlAuthentication
extends java.net.Authenticator

Authenticator class for session storage of http user credentials. Refer to the Android java.net.Authenticator for more info.

Author:
Mats-Gøran Karlsen

Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Authenticator
java.net.Authenticator.RequestorType
 
Constructor Summary
UrlAuthentication(java.lang.String user, java.lang.String pass)
           
 
Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
           
 
Methods inherited from class java.net.Authenticator
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlAuthentication

public UrlAuthentication(java.lang.String user,
                         java.lang.String pass)
Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
Overrides:
getPasswordAuthentication in class java.net.Authenticator