|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.framework.http.CredentialProvider
public class CredentialProvider
Provides credentials for the execution of an HTTP client request.
| Constructor Summary | |
|---|---|
CredentialProvider(String username,
String password)
Constructs with a supplied username and password. |
|
| Method Summary | |
|---|---|
static CredentialProvider |
establishThreadLocalInstance(HttpServletRequest request)
Establishes a thread local instance of credentials based upon authorization credentials found within the HTTP request header. |
String |
getPassword()
Gets the password. |
static CredentialProvider |
getThreadLocalInstance()
Gets the thread local instance of the credential provider. |
String |
getUsername()
Gets the username. |
void |
setPassword(String password)
Sets the password. |
void |
setUsername(String username)
Sets the username. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CredentialProvider(String username,
String password)
username - the usernamepassword - the password| Method Detail |
|---|
public static CredentialProvider getThreadLocalInstance()
public String getPassword()
public void setPassword(String password)
password - the passwordpublic String getUsername()
public void setUsername(String username)
username - the usernamepublic static CredentialProvider establishThreadLocalInstance(HttpServletRequest request)
request - the executing HTTP servlet request
|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||