public interface ISVNAuthenticationStorage
To make an authentication manager use your custom auth storage manager,
provide it to the setRuntimeStorage()
method of the authentication manager.
A default implementation of ISVNAuthenticationStorage (that comes along with a default implementation of ISVNAuthenticationManager - org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager) caches credentials only in the memory (not in the filesystem) during runtime. This feature is handy especially when on-disk caching is disabled in the standard config file (option "store-auth-creds" is "no").
ISVNAuthenticationManager
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData(java.lang.String kind,
java.lang.String realm)
Retrieves a cached credential of the specified kind for the
given repository authentication realm from the auth storage.
|
void |
putData(java.lang.String kind,
java.lang.String realm,
java.lang.Object data)
Caches a credential of the specified kind for the given repository
authentication realm in the auth storage.
|
void putData(java.lang.String kind, java.lang.String realm, java.lang.Object data)
kind
- a credential kind (for example, like those defined in
ISVNAuthenticationManager
)realm
- a repository authentication realm including a hostname,
a port number and a realm stringdata
- a credential objectjava.lang.Object getData(java.lang.String kind, java.lang.String realm)
kind
- a credential kind (for example, like those defined in
ISVNAuthenticationManager
)realm
- a repository authentication realm including a hostname,
a port number and a realm stringCopyright © 2004-2012 TMate Software Ltd. All Rights Reserved.