public final class ScriptCredentialVault extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ScriptableMap<String,Serializable> |
properties |
| Constructor and Description |
|---|
ScriptCredentialVault(CredentialVault vault,
User user)
Constructs a new ScriptCredentialVault object.
|
| Modifier and Type | Method and Description |
|---|---|
ScriptableMap<String,Serializable> |
getProperties()
Returns the properties of the credential vault
|
User |
getUser()
Returns the user to whom this credential vault belongs
|
boolean |
hasCredentials(String endpointId)
Returns whether the given endpoint credentials are stored on this vault
|
ScriptCredentials |
newCredentials(String endpointId)
Creates new credentials and binds them into this vault.
|
void |
removeCredentials(String endpointId)
Removes credentials from the vault
|
void |
save()
Saves the credential vault
|
protected ScriptableMap<String,Serializable> properties
public ScriptCredentialVault(CredentialVault vault, User user)
vault - The credential vault instanceuser - The user to whom the credential vault belongspublic ScriptableMap<String,Serializable> getProperties()
public User getUser()
public boolean hasCredentials(String endpointId)
endpointId - Stringpublic ScriptCredentials newCredentials(String endpointId)
endpointId - Stringpublic void removeCredentials(String endpointId)
endpointId - Stringpublic void save()
Copyright © 2005–2016 Alfresco Software. All rights reserved.