org.springframework.extensions.webscripts.connector
Interface Credentials

All Known Implementing Classes:
CredentialsImpl

public interface Credentials

Interface that describes the credentials for a given service or user.

Author:
muzquiano

Field Summary
static String CREDENTIAL_PASSWORD
           
static String CREDENTIAL_USERNAME
           
 
Method Summary
 String getEndpointId()
          Gets the endpoint id.
 Object getProperty(String key)
          Gets a given property
 String[] getPropertyKeys()
          Returns the property keys
 boolean isPersistent()
          Returns whether this credential is persistent A persistent credential is written to a persistent vault.
 void removeAllProperties(String key)
          Removes all properties
 void removeProperty(String key)
          Removes a given property
 void setProperty(String key, Object value)
          Sets a given property
 

Field Detail

CREDENTIAL_USERNAME

static final String CREDENTIAL_USERNAME
See Also:
Constant Field Values

CREDENTIAL_PASSWORD

static final String CREDENTIAL_PASSWORD
See Also:
Constant Field Values
Method Detail

getEndpointId

String getEndpointId()
Gets the endpoint id.

Returns:
the endpoint id

getProperty

Object getProperty(String key)
Gets a given property

Parameters:
key - the key
Returns:
the property

setProperty

void setProperty(String key,
                 Object value)
Sets a given property

Parameters:
key - the key
value - the value

removeProperty

void removeProperty(String key)
Removes a given property

Parameters:
key -

removeAllProperties

void removeAllProperties(String key)
Removes all properties

Parameters:
key -

getPropertyKeys

String[] getPropertyKeys()
Returns the property keys

Returns:
array of property keys

isPersistent

boolean isPersistent()
Returns whether this credential is persistent A persistent credential is written to a persistent vault. A non-persistent credential is loaded into the vault but never stored

Returns:


Copyright © 2009 SpringSource, Inc. All Rights Reserved.