|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.credentials.internal.NullCredentialsManager
public class NullCredentialsManager
A credentials manager that does not support read or write.
Constructor Summary | |
---|---|
NullCredentialsManager()
|
Method Summary | |
---|---|
boolean |
canWrite()
Tests whether this credentials provider is writable. |
CachedCredentials[] |
getCredentials()
Returns all the credentials that are currently configured for any server. |
CachedCredentials |
getCredentials(java.net.URI serverURI)
Provides the credentials for the given URI . |
java.lang.String |
getUIMechanismName()
Gets the localized name of the storage mechanism this provider uses. |
boolean |
isSecure()
Queries whether the credentials are stored in a secure mechanism as determined by the operating system, for example, Apple Keychain, GNOME Keyring, Windows CredMan, Eclipse's credential store, or encrypted using a system mechanism such as Windows DPAPI. |
boolean |
removeCredentials(CachedCredentials cachedCredentials)
Removes the credentials for the given URI. |
boolean |
removeCredentials(java.net.URI uri)
Removes the credentials for the given URI. |
boolean |
setCredentials(CachedCredentials cachedCredentials)
Sets the credentials for the given URI . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullCredentialsManager()
Method Detail |
---|
public java.lang.String getUIMechanismName()
getUIMechanismName
in interface CredentialsManager
null
)public boolean canWrite()
canWrite
in interface CredentialsManager
true
if the credentials provider is writable,
false
otherwisepublic boolean isSecure()
isSecure
in interface CredentialsManager
true
if these credentials are stored securely,
false
otherwisepublic CachedCredentials[] getCredentials()
getCredentials
in interface CredentialsManager
null
)public CachedCredentials getCredentials(java.net.URI serverURI)
URI
. The given URI
may be a TFS server, an HTTP proxy or a TFS proxy.
This method may return CachedCredentials
that match only some
parts of the given URI
(instead of all parts).
getCredentials
in interface CredentialsManager
serverURI
- The URI to connect to (never null
)
null
)public boolean setCredentials(CachedCredentials cachedCredentials)
URI
. The given URI
may
be a TFS server, an HTTP proxy or a TFS proxy.
Users should ensure that this credentials provider is writable by calling
the CredentialsManager.canWrite()
method for calling this one.
See class documentation for CredentialsManager
for information on
how this URI
may be altered before being saved.
setCredentials
in interface CredentialsManager
cachedCredentials
- The credentials to connect with (never null
)
true
if the credentials were successfully saved,
false
otherwisepublic boolean removeCredentials(java.net.URI uri)
Users should ensure that this credentials provider is writable by calling
the CredentialsManager.canWrite()
method for calling this one.
removeCredentials
in interface CredentialsManager
true
if the credentials were successfully removed,
false
otherwisepublic boolean removeCredentials(CachedCredentials cachedCredentials)
Users should ensure that this credentials provider is writable by calling
the CredentialsManager.canWrite()
method for calling this one.
removeCredentials
in interface CredentialsManager
cachedCredentials
- The credentials to remove (not null
)
true
if the credentials were successfully removed,
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |