|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.credentials.CachedCredentials
public class CachedCredentials
Represents credentials used to authenticate to TFS or other network resources (HTTP proxies) that can be saved on the client.
Constructor Summary | |
---|---|
CachedCredentials(java.net.URI uri,
Cookie[] cookies)
Creates CachedCredentials for the given URI . |
|
CachedCredentials(java.net.URI uri,
Credentials credentials)
Creates CachedCredentials from an existing Credentials
object. |
|
CachedCredentials(java.net.URI uri,
java.lang.String username,
java.lang.String password)
Creates CachedCredentials for the given URI . |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Cookie[] |
getCookies()
|
java.lang.String |
getPassword()
|
java.net.URI |
getURI()
|
java.lang.String |
getUsername()
|
int |
hashCode()
|
Credentials |
toCredentials()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedCredentials(java.net.URI uri, Credentials credentials)
CachedCredentials
from an existing Credentials
object.
uri
- the URI
the credentials are for (must not be
null
)credentials
- the credentials (must not be null
)public CachedCredentials(java.net.URI uri, java.lang.String username, java.lang.String password)
CachedCredentials
for the given URI
.
uri
- the URI
(must not be null
)username
- the username including domain (may be null
or empty)password
- the password (may be null
or empty)public CachedCredentials(java.net.URI uri, Cookie[] cookies)
CachedCredentials
for the given URI
.
uri
- the URI
(must not be null
)cookies
- the cookies for Federated Authentication)Method Detail |
---|
public java.net.URI getURI()
null
)public java.lang.String getUsername()
null
)public java.lang.String getPassword()
null
)public Cookie[] getCookies()
null
)public Credentials toCredentials()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |