Interface CredentialService

    • 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 blob
        type - the credential type such as 'ec2', 'cert', ..
        projectId - the id of the associated project
        userId - 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