|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.connector.CredentialsImpl
public class CredentialsImpl
Credentials for a given user. This stores credentials that are to be passed to a back-end service in order to authenticate. Once these credentials are used to authenticate, they may no longer be necessary as the service may hand back "endpoint credentials" which are to be used on subsequent calls. An example of a user credential might be username/password. An example of an endpoint credential might be an Alfresco ticket.
Field Summary | |
---|---|
protected String |
endpointId
|
protected boolean |
persistent
|
protected HashMap<String,Object> |
properties
|
Fields inherited from interface org.springframework.extensions.webscripts.connector.Credentials |
---|
CREDENTIAL_PASSWORD, CREDENTIAL_USERNAME |
Constructor Summary | |
---|---|
CredentialsImpl(String endpointId)
Instantiates a new user credential. |
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 |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean persistent
protected String endpointId
protected HashMap<String,Object> properties
Constructor Detail |
---|
public CredentialsImpl(String endpointId)
endpointId
- the endpoint idMethod Detail |
---|
public String getEndpointId()
Credentials
getEndpointId
in interface Credentials
public Object getProperty(String key)
Credentials
getProperty
in interface Credentials
key
- the key
public void setProperty(String key, Object value)
Credentials
setProperty
in interface Credentials
key
- the keyvalue
- the valuepublic void removeProperty(String key)
Credentials
removeProperty
in interface Credentials
public void removeAllProperties(String key)
Credentials
removeAllProperties
in interface Credentials
public String[] getPropertyKeys()
Credentials
getPropertyKeys
in interface Credentials
public boolean isPersistent()
Credentials
isPersistent
in interface Credentials
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |