Class ScriptCredentialVault
java.lang.Object
org.springframework.extensions.webscripts.ScriptCredentialVault
Represents the credential vault to the script engine
This exposes credentials from the vault which are "user" managed
- Author:
- muzquiano
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScriptCredentialVault(CredentialVault vault, User user) Constructs a new ScriptCredentialVault object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the properties of the credential vaultgetUser()Returns the user to whom this credential vault belongsbooleanhasCredentials(String endpointId) Returns whether the given endpoint credentials are stored on this vaultnewCredentials(String endpointId) Creates new credentials and binds them into this vault.voidremoveCredentials(String endpointId) Removes credentials from the vaultvoidsave()Saves the credential vault
-
Field Details
-
properties
-
-
Constructor Details
-
ScriptCredentialVault
Constructs a new ScriptCredentialVault object.- Parameters:
vault- The credential vault instanceuser- The user to whom the credential vault belongs
-
-
Method Details
-
getProperties
Returns the properties of the credential vault -
getUser
Returns the user to whom this credential vault belongs -
hasCredentials
Returns whether the given endpoint credentials are stored on this vault- Parameters:
endpointId- String- Returns:
- boolean
-
newCredentials
Creates new credentials and binds them into this vault. If the credentials already exist, the old ones will be returned- Parameters:
endpointId- String- Returns:
- ScriptCredentials
-
removeCredentials
Removes credentials from the vault- Parameters:
endpointId- String
-
save
public void save()Saves the credential vault
-