|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.httpclient.auth.HttpAuthRealm
The key used to look up authentication credentials.
Constructor Summary | |
HttpAuthRealm()
Creates a new authentication realm token that matches any authentication realm. |
|
HttpAuthRealm(HttpAuthRealm token)
Creates a copy of the given authentication realm token. |
|
HttpAuthRealm(java.lang.String host,
int port)
Creates a new authentication realm token for the given host, port, any realm name, and any authentication scheme. |
|
HttpAuthRealm(java.lang.String host,
int port,
java.lang.String realm)
Creates a new authentication realm token for the given host, port, realm, and any authentication scheme. |
|
HttpAuthRealm(java.lang.String host,
int port,
java.lang.String realm,
java.lang.String scheme)
Creates a new authentication realm token for the given host, port, realm, and authentication scheme. |
|
HttpAuthRealm(java.lang.String host,
java.lang.String realm)
Creates a new authentication realm token for the given host, realm, any port, and any authentication scheme. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getHost()
|
int |
getPort()
|
java.lang.String |
getRealm()
|
java.lang.String |
getScheme()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HttpAuthRealm(java.lang.String host, int port, java.lang.String realm, java.lang.String scheme)
host
- the host the credentials apply to. May be set
to null if credenticals are applicable to
any host.port
- the port the credentials apply to. May be set
to negative value if credenticals are applicable to
any port.realm
- the realm the credentials apply to. May be set
to null if credenticals are applicable to
any realm.scheme
- the authentication scheme the credentials apply to.
May be set to null if credenticals are applicable to
any authentication scheme.public HttpAuthRealm(java.lang.String host, int port, java.lang.String realm)
host
- the host the credentials apply to. May be set
to null if credenticals are applicable to
any host.port
- the port the credentials apply to. May be set
to negative value if credenticals are applicable to
any port.realm
- the realm the credentials apply to. May be set
to null if credenticals are applicable to
any realm.public HttpAuthRealm(java.lang.String host, int port)
host
- the host the credentials apply to. May be set
to null if credenticals are applicable to
any host.port
- the port the credentials apply to. May be set
to negative value if credenticals are applicable to
any port.public HttpAuthRealm(java.lang.String host, java.lang.String realm)
host
- the host the credentials apply to. May be set
to null if credenticals are applicable to
any host.realm
- the realm the credentials apply to. May be set
to null if credenticals are applicable to
any realm.public HttpAuthRealm()
public HttpAuthRealm(HttpAuthRealm token)
Method Detail |
public java.lang.String getHost()
public int getPort()
public java.lang.String getRealm()
public java.lang.String getScheme()
public boolean equals(java.lang.Object o)
Object.equals(Object)
public java.lang.String toString()
Object.toString()
public int hashCode()
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |