Esri Geoportal Server
1.0

com.esri.gpt.framework.security.credentials
Class ProxyAuthenticator

java.lang.Object
  extended by java.net.Authenticator
      extended by com.esri.gpt.framework.security.credentials.ProxyAuthenticator

public class ProxyAuthenticator
extends Authenticator

Provides credentials for outbound HTTP requests requiring proxy authentication.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Authenticator
Authenticator.RequestorType
 
Constructor Summary
ProxyAuthenticator(String username, String password)
          Constructs the authenticator.
 
Method Summary
protected  PasswordAuthentication getPasswordAuthentication()
          Gets an instance of the password authentication credentials.
static void setDefault(String username, String password)
          Sets up the system default authenticator of outbound HTTP requests requiring proxy authentication.
 
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

ProxyAuthenticator

public ProxyAuthenticator(String username,
                          String password)
Constructs the authenticator.

Parameters:
username - the username
password - the password
Method Detail

getPasswordAuthentication

protected PasswordAuthentication getPasswordAuthentication()
Gets an instance of the password authentication credentials.

Overrides:
getPasswordAuthentication in class Authenticator
Returns:
the password authentication credentials

setDefault

public static void setDefault(String username,
                              String password)
Sets up the system default authenticator of outbound HTTP requests requiring proxy authentication.
The default authenticator will only be set if:

Parameters:
username - the username
password - the password

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.