org.springframework.extensions.webscripts.connector
Class XMLCredentialVaultProvider

java.lang.Object
  extended by org.springframework.extensions.webscripts.connector.XMLCredentialVaultProvider
All Implemented Interfaces:
CredentialVaultProvider

public class XMLCredentialVaultProvider
extends Object
implements CredentialVaultProvider

Provides instances of credential vaults

Author:
muzquiano

Field Summary
protected  ConfigService configService
           
protected  String location
           
 
Constructor Summary
XMLCredentialVaultProvider()
          Instantiates a new XML credential vault provider.
 
Method Summary
 String generateKey(String id, String userId)
          Provide a key for this Credential Vault for caching purposes
 CredentialVault provide(String id)
          Provide a credential vault for the given ID
 void setConfigService(ConfigService configService)
          Sets the config service.
 void setLocation(String location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configService

protected ConfigService configService

location

protected String location
Constructor Detail

XMLCredentialVaultProvider

public XMLCredentialVaultProvider()
Instantiates a new XML credential vault provider.

Method Detail

setConfigService

public void setConfigService(ConfigService configService)
Sets the config service.

Parameters:
configService - the new config service

setLocation

public void setLocation(String location)

provide

public CredentialVault provide(String id)
                        throws CredentialVaultProviderException
Description copied from interface: CredentialVaultProvider
Provide a credential vault for the given ID

Specified by:
provide in interface CredentialVaultProvider
Parameters:
id - Credential vault ID
Returns:
a new Credential Vault implementation
Throws:
CredentialVaultProviderException

generateKey

public String generateKey(String id,
                          String userId)
Description copied from interface: CredentialVaultProvider
Provide a key for this Credential Vault for caching purposes

Specified by:
generateKey in interface CredentialVaultProvider
Parameters:
id - Credential vault ID
userId - User ID
Returns:
key as appropriate for this Credential Vault implementation


Copyright © 2009 SpringSource, Inc. All Rights Reserved.