org.apache.maven.artifact.manager
Interface CredentialsDataSource


public interface CredentialsDataSource

A wrapper class around setting/retrieving/caching authentication info by resource ID. Typical usage - accessing server authentication for by it's ID

Author:
Oleg Gusakov

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 org.apache.maven.wagon.authentication.AuthenticationInfo get(java.lang.String resourceId)
          find, if not found, prompt and create Authentication info for a given resource
 void set(CredentialsChangeRequest req)
          set, if not found, prompt and create Authentication info for a given resource.
 

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

get

org.apache.maven.wagon.authentication.AuthenticationInfo get(java.lang.String resourceId)
                                                             throws CredentialsDataSourceException
find, if not found, prompt and create Authentication info for a given resource

Parameters:
resourceId - resource ID for which authentication is required
Returns:
resource AuthenticationInfo. Should always exist.
Throws:
CredentialsDataSourceException

set

void set(CredentialsChangeRequest req)
         throws CredentialsDataSourceException
set, if not found, prompt and create Authentication info for a given resource. This one uses the old password member of AuthenticationInfo

Throws:
CredentialsDataSourceException


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.