| com.atlassian.bitbucket.ssh.SshAccessKeyService |
Manages SSH access keys and their access to Project projects and
Repository repositories
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Finds
SSH access keys for projects accessible to the current user for the supplied
key's ID | |||||||||||
Finds
SSH access keys for repositories accessible to the current user for the
supplied key's ID | |||||||||||
Finds
SSH access keys for the supplied project | |||||||||||
Finds
SSH access keys for the supplied repository | |||||||||||
Revokes access for the provided
SSH key to the repository | |||||||||||
Creates a new
access key or updates the access level of an existing
access key on a Project or Repository | |||||||||||
| project | the project to query |
|---|
true if any SSH access keys have been defined for the provided project
| repository | the repository to query |
|---|
true if any SSH access keys have been defined for the provided repository
Finds SSH access keys for projects accessible to the current user for the supplied
key's ID
| sshKeyId | the key ID to search for |
|---|---|
| pageRequest | the page request |
Finds SSH access keys for repositories accessible to the current user for the
supplied key's ID
| sshKeyId | the key ID to search for |
|---|---|
| pageRequest | the page request |
Finds SSH access keys for the supplied project
| project | the project to search by |
|---|---|
| pageRequest | the page request |
Finds SSH access keys for the supplied repository
| repository | the repository to search by |
|---|---|
| pageRequest | the page request |
Retrieves the access key with SSH key ID sshKeyId for the provided project
| sshKeyId | the ID of the SSH key |
|---|---|
| project | the project |
access key, or empty() if the provided key does not have
access to the project
Retrieves the access key with SSH key ID sshKeyId for the provided
repository
| sshKeyId | the ID of the SSH key |
|---|---|
| repository | the repository |
access key, or empty() if the provided key does not have
access to the repository
Revokes access for the provided SSH key to the repository
| sshKeyId | id of the SSH key |
|---|---|
| repository | the repository |
Revokes all access for the provided SSH key to the supplied repositories
and projects
| sshKeyId | id of the SSH key |
|---|---|
| repositories | the repositories |
| projects | the repositories |
Creates a new access key or updates the access level of an existing
access key on a Project or Repository
| request | the request detailing the desired access level |
|---|
SshAccessKey instance representing the created or updated access key