Package com.atlassian.bamboo.security
Class AbstractTrustedKeyHelper
- java.lang.Object
-
- com.atlassian.bamboo.security.AbstractTrustedKeyHelper
-
- All Implemented Interfaces:
TrustedKeyHelper
- Direct Known Subclasses:
RemoteTrustedKeyHelperImpl
,ServerTrustedKeyHelperImpl
public abstract class AbstractTrustedKeyHelper extends Object implements TrustedKeyHelper
Basic implementation for server and agent side.
-
-
Field Summary
Fields Modifier and Type Field Description protected io.atlassian.util.concurrent.ResettableLazyReference<File>
fileSupplier
-
Fields inherited from interface com.atlassian.bamboo.security.TrustedKeyHelper
KNOWN_HOSTS_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description AbstractTrustedKeyHelper(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooHomeLocator homeLocator, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull File
getCustomAcceptedSshHostKeysFile()
boolean
isCustomAcceptedSshHostKeysEnabled()
void
onTrustedKeyRemoved(TrustedKeyRemovedEvent event)
void
onTrustedKeySaved(TrustedKeySavedEvent event)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.security.TrustedKeyHelper
getTrustedKeys
-
-
-
-
Field Detail
-
fileSupplier
protected io.atlassian.util.concurrent.ResettableLazyReference<File> fileSupplier
-
-
Constructor Detail
-
AbstractTrustedKeyHelper
public AbstractTrustedKeyHelper(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooHomeLocator homeLocator, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
isCustomAcceptedSshHostKeysEnabled
public boolean isCustomAcceptedSshHostKeysEnabled()
- Specified by:
isCustomAcceptedSshHostKeysEnabled
in interfaceTrustedKeyHelper
- Returns:
- true if custom keys are enabled for Bamboo
-
getCustomAcceptedSshHostKeysFile
@NotNull public @NotNull File getCustomAcceptedSshHostKeysFile()
- Specified by:
getCustomAcceptedSshHostKeysFile
in interfaceTrustedKeyHelper
- Returns:
- file with trusted keys in SSH known_hosts format
-
onTrustedKeyRemoved
@EventListener public void onTrustedKeyRemoved(TrustedKeyRemovedEvent event)
-
onTrustedKeySaved
@EventListener public void onTrustedKeySaved(TrustedKeySavedEvent event)
-
-