Package org.openstack4j.api.identity.v3
Interface CredentialService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
CredentialServiceImpl
public interface CredentialService extends RestService
Identity V3 Credential service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Credentialcreate(String blob, String type, String projectId, String userId)Create a new credentialCredentialcreate(Credential credential)Create a new credentialActionResponsedelete(String credentialId)Delete credentialCredentialget(String credentialId)Get details for a credentialList<? extends Credential>list()List all credentialsCredentialupdate(Credential credential)Update credentials
-
-
-
Method Detail
-
create
Credential create(Credential credential)
Create a new credential- Parameters:
credential- the credential- Returns:
- the newly created credential
-
create
Credential create(String blob, String type, String projectId, String userId)
Create a new credential- Parameters:
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 credential
-
get
Credential get(String credentialId)
Get details for a credential- Parameters:
credentialId- the id of the credential object- Returns:
- the credential
-
update
Credential update(Credential credential)
Update credentials- Parameters:
credential- the credential set to update- Returns:
- the updated credential
-
delete
ActionResponse delete(String credentialId)
Delete credential- Parameters:
credentialId- the id of the credential object- Returns:
- the ActionResponse
-
list
List<? extends Credential> list()
List all credentials- Returns:
- list of credentials
-
-