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 | |||||||||||
This method is deprecated.
since 5.0 for removal in 6.0. Use
search(SshAccessKeySearchRequest, PageRequest) instead.
| |||||||||||
This method is deprecated.
since 5.0 for removal in 6.0. Use
search(SshAccessKeySearchRequest, PageRequest) instead.
| |||||||||||
Revokes access for the provided
SSH key to the repository | |||||||||||
Retrieves
SSH access keys that match the provided request . | |||||||||||
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 |
This method is deprecated.
since 5.0 for removal in 6.0. Use search(SshAccessKeySearchRequest, PageRequest)
instead.
Finds SSH access keys
for the supplied project
project | the project to search by |
---|---|
pageRequest | the page request |
This method is deprecated.
since 5.0 for removal in 6.0. Use search(SshAccessKeySearchRequest, PageRequest)
instead.
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 |
Retrieves SSH access keys
that match the provided request
.
request | a request object describing the SSH access keys to retrieve |
---|---|
pageRequest | the page request |
page
of SSH access keys
that match the search request,
possibly empty but never null
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