Class CredentialsImpl
java.lang.Object
org.springframework.extensions.webscripts.connector.CredentialsImpl
- All Implemented Interfaces:
Serializable,Credentials
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.
- Author:
- muzquiano
- See Also:
-
Field Summary
FieldsFields inherited from interface org.springframework.extensions.webscripts.connector.Credentials
CREDENTIAL_PASSWORD, CREDENTIAL_USERNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the endpoint id.getProperty(String key) Gets a given propertyString[]Returns the property keysbooleanReturns whether this credential is persistent A persistent credential is written to a persistent vault.voidRemoves all propertiesvoidremoveProperty(String key) Removes a given propertyvoidsetProperty(String key, Object value) Sets a given propertytoString()
-
Field Details
-
persistent
protected boolean persistent -
endpointId
-
properties
-
-
Constructor Details
-
CredentialsImpl
Instantiates a new user credential.- Parameters:
endpointId- the endpoint id
-
-
Method Details
-
getEndpointId
Description copied from interface:CredentialsGets the endpoint id.- Specified by:
getEndpointIdin interfaceCredentials- Returns:
- the endpoint id
-
getProperty
Description copied from interface:CredentialsGets a given property- Specified by:
getPropertyin interfaceCredentials- Parameters:
key- the key- Returns:
- the property
-
setProperty
Description copied from interface:CredentialsSets a given property- Specified by:
setPropertyin interfaceCredentials- Parameters:
key- the keyvalue- the value
-
removeProperty
Description copied from interface:CredentialsRemoves a given property- Specified by:
removePropertyin interfaceCredentials- Parameters:
key- String
-
removeAllProperties
Description copied from interface:CredentialsRemoves all properties- Specified by:
removeAllPropertiesin interfaceCredentials- Parameters:
key- String
-
getPropertyKeys
Description copied from interface:CredentialsReturns the property keys- Specified by:
getPropertyKeysin interfaceCredentials- Returns:
- array of property keys
-
isPersistent
public boolean isPersistent()Description copied from interface:CredentialsReturns 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- Specified by:
isPersistentin interfaceCredentials- Returns:
- boolean
-
toString
-