public interface CredentialService extends RestService
Modifier and Type | Method and Description |
---|---|
Credential |
create(Credential credential)
Create a new credential
|
Credential |
create(String blob,
String type,
String projectId,
String userId)
Create a new credential
|
ActionResponse |
delete(String credentialId)
Delete credential
|
Credential |
get(String credentialId)
Get details for a credential
|
List<? extends Credential> |
list()
List all credentials
|
Credential |
update(Credential credential)
Update credentials
|
Credential create(Credential credential)
credential
- the credentialCredential create(String blob, String type, String projectId, String userId)
blob
- the credential itself as serialized blobtype
- the credential type such as 'ec2', 'cert', ..projectId
- the id of the associated projectuserId
- the id of the user who owns the credentialCredential get(String credentialId)
credentialId
- the id of the credential objectCredential update(Credential credential)
credential
- the credential set to updateActionResponse delete(String credentialId)
credentialId
- the id of the credential objectList<? extends Credential> list()
Copyright © 2017. All rights reserved.