Package com.atlassian.bamboo.security
Class TrustedKeyServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.security.TrustedKeyServiceImpl
-
- All Implemented Interfaces:
TrustedKeyService
@Component public class TrustedKeyServiceImpl extends Object implements TrustedKeyService
-
-
Constructor Summary
Constructors Constructor Description TrustedKeyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(long trustedKeyId)
@NotNull List<TrustedKey>
findAll()
@NotNull List<TrustedKey>
findApproved()
boolean
save(@NotNull TrustedKey trustedKey)
Persists the given trusted key.
-
-
-
Method Detail
-
findAll
@NotNull public @NotNull List<TrustedKey> findAll()
- Specified by:
findAll
in interfaceTrustedKeyService
-
findApproved
@NotNull public @NotNull List<TrustedKey> findApproved()
- Specified by:
findApproved
in interfaceTrustedKeyService
-
delete
public void delete(long trustedKeyId)
- Specified by:
delete
in interfaceTrustedKeyService
-
save
public boolean save(@NotNull @NotNull TrustedKey trustedKey)
Description copied from interface:TrustedKeyService
Persists the given trusted key.- Specified by:
save
in interfaceTrustedKeyService
- Returns:
- true, if trusted key was saved successfully; false if the key was not saved, because another key with the same host/ssh key combination already exists
-
-