public class CredentialsImpl extends Object implements Credentials, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
endpointId |
protected boolean |
persistent |
protected HashMap<String,Object> |
properties |
CREDENTIAL_PASSWORD, CREDENTIAL_USERNAME| Constructor and Description |
|---|
CredentialsImpl(String endpointId)
Instantiates a new user credential.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
protected boolean persistent
protected String endpointId
public CredentialsImpl(String endpointId)
endpointId - the endpoint idpublic String getEndpointId()
CredentialsgetEndpointId in interface Credentialspublic Object getProperty(String key)
CredentialsgetProperty in interface Credentialskey - the keypublic void setProperty(String key, Object value)
CredentialssetProperty in interface Credentialskey - the keyvalue - the valuepublic void removeProperty(String key)
CredentialsremoveProperty in interface Credentialskey - Stringpublic void removeAllProperties(String key)
CredentialsremoveAllProperties in interface Credentialskey - Stringpublic String[] getPropertyKeys()
CredentialsgetPropertyKeys in interface Credentialspublic boolean isPersistent()
CredentialsisPersistent in interface CredentialsCopyright © 2005–2018 Alfresco Software. All rights reserved.