|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.net.Authentication
For more complete information about HTTP authentication, please read the following:
AuthenticationManager,
AuthenticationListener,
AuthenticationEvent,
Serialized Form| Field Summary | |
static int |
BASIC
|
static int |
DIGEST
|
static int |
NTLM
|
| Constructor Summary | |
Authentication(URL requestUri)
Instantiates an Authentication with the specified
requestUri. |
|
| Method Summary | |
String |
getAuthString()
|
String |
getLocation()
Actually gets the string representation of the request-URI of this Authentication. |
String |
getMethod()
Gets the method of this Authentication. |
String |
getNonce()
Gets the nonce of this Authentication. |
String |
getPassword()
Gets the password of this Authentication. |
String |
getRealm()
Gets the realm of this Authentication. |
String |
getType()
Gets the type of this Authentication. |
URL |
getUrl()
Actually gets the URI representation of the request-URI of this Authentication. |
String |
getUserName()
Gets the user name of this Authentication. |
boolean |
giveUp()
Indicates if this Authentcation has been given up. |
boolean |
inProgress()
Indicates if this Authentication is "in progress". |
boolean |
isConfirmed()
Indicates if this Authentication is confirmed. |
boolean |
isProxyAuth()
Indicates if this Authentication is a proxy
authentication. |
boolean |
isVolatile()
Determines if this Authentication is volatile. |
void |
setConfirmed(boolean confirmed)
|
void |
setGiveUp(boolean giveUp)
|
void |
setIsProxyAuth(boolean isProxyAuthentication)
|
void |
setMethod(String method)
Sets the method of this Authentication to the specified
method. |
void |
setNonce(String nonce)
Sets the nonce of this Authentication to the specified
nonce. |
void |
setPassword(String password)
Sets the password of this Authentication to the specified
password. |
void |
setRealm(String realm)
Sets the realm of this Authentication to the specified
realm. |
void |
setType(int type)
Sets the type of this Authentication to the specified
type. |
void |
setUserName(String userName)
Sets the user name of this Authentication to the
specified userName. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int BASIC
public static final int DIGEST
public static final int NTLM
| Constructor Detail |
public Authentication(URL requestUri)
Instantiates an Authentication with the specified
requestUri.
requestUri - the request-URI of the Authentication to be
created.| Method Detail |
public String getAuthString()
public String getLocation()
Actually gets the string representation of the request-URI of this
Authentication.
public String getMethod()
Gets the method of this Authentication.
That is, the method is the HTTP request method which is part of the checksum contained in the response.
setMethod(String)public String getNonce()
Gets the nonce of this Authentication.
That is, a nonce is a server-specified data string which should be uniquely generated each time a 401 response is made. It is recommended that this string be Base64 or hexadecimal data. Specifically, since the string is passed in the header lines as a quoted string, the double-quote character is not allowed.
The nonce is opaque to the client.
setNonce(String)public String getPassword()
Gets the password of this Authentication.
setPassword(String)public String getRealm()
Gets the realm of this Authentication.
That is, a realm is a string to be displayed to users so they know which user name and password to use. This string should contain at least the name of the host performing the authentication and might additionally indicate the collection of users who might have access.
Examples might be "WallyWorld" and
"registerd_users@gotham.news.com".
setRealm(String)public String getType()
Gets the type of this Authentication.
setType(int)public URL getUrl()
Actually gets the URI representation of the request-URI of this
Authentication.
public String getUserName()
Gets the user name of this Authentication.
That is, the user name is the user's name in the specified realm.
setUserName(String)public boolean giveUp()
Indicates if this Authentcation has been given up.
true if this Authentication has
been given up, false if not.setGiveUp(boolean)public boolean inProgress()
Indicates if this Authentication is "in progress".
true if this Authentication is "in
progress", false if not.public boolean isConfirmed()
Indicates if this Authentication is confirmed.
true if this Authentication is
confirmed, false if not.setConfirmed(boolean)public boolean isProxyAuth()
Indicates if this Authentication is a proxy
authentication.
true if this Authentication is a
proxy authentication, false if not.setIsProxyAuth(boolean)public boolean isVolatile()
Determines if this Authentication is volatile.
true if this Authentication is
volatile, false if not.public void setConfirmed(boolean confirmed)
confirmed - public void setGiveUp(boolean giveUp)
giveUp - public void setIsProxyAuth(boolean isProxyAuthentication)
isProxyAuthentication - public void setMethod(String method)
Sets the method of this Authentication to the specified
method.
method - the new method.getMethod()public void setNonce(String nonce)
Sets the nonce of this Authentication to the specified
nonce.
nonce - the new nonce.getNonce()public void setPassword(String password)
Sets the password of this Authentication to the specified
password.
password - the new password.getPassword()public void setRealm(String realm)
Sets the realm of this Authentication to the specified
realm.
realm - the new realm.getRealm()public void setType(int type)
Sets the type of this Authentication to the specified
type. If an unknown authentication type is submitted,
it defaults to .BASIC
type - the new type.getType()public void setUserName(String userName)
Sets the user name of this Authentication to the
specified userName.
userName - the new user name.getUserName()public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||