Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * ====================================================================
  * Copyright (c) 2004-2006 TMate Software Ltd.  All rights reserved.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution.  The terms
  * are also available at http://svnkit.com/license.html
  * If newer versions of this license are posted there, you may use a
  * newer version instead, at your option.
 * ====================================================================
 */
package org.tmatesoft.svn.core.auth;

The ISVNAuthenticationStorage interface is used to implement custom runtime authentication storage managers, that are responsible for caching user credentials as well as for retrieving cached credentials from the storage of a preferable type (it may be an in-memory cache, or a disk cache).

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").

Author(s):
TMate Software Ltd.
Version:
1.1.0
See also:
ISVNAuthenticationManager
public interface ISVNAuthenticationStorage {
    
Caches a credential of the specified kind for the given repository authentication realm in the auth storage.

Parameters:
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 string
data a credential object
    public void putData(String kindString realmObject data);
    
    
Retrieves a cached credential of the specified kind for the given repository authentication realm from the auth storage.

Parameters:
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 string
Returns:
a credential object
    public Object getData(String kindString realm);
New to GrepCode? Check out our FAQ X