Package com.atlassian.bamboo.security
Class AbstractTrustedKeyHelper
java.lang.Object
com.atlassian.bamboo.security.AbstractTrustedKeyHelper
- All Implemented Interfaces:
TrustedKeyHelper
- Direct Known Subclasses:
RemoteTrustedKeyHelperImpl
,ServerTrustedKeyHelperImpl
Basic implementation for server and agent side.
-
Field Summary
Modifier and TypeFieldDescriptionprotected io.atlassian.util.concurrent.ResettableLazyReference<File>
Fields inherited from interface com.atlassian.bamboo.security.TrustedKeyHelper
KNOWN_HOSTS_FUNCTION
-
Constructor Summary
ConstructorDescriptionAbstractTrustedKeyHelper
(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooHomeLocator homeLocator, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
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 Details
-
fileSupplier
-
-
Constructor Details
-
AbstractTrustedKeyHelper
public AbstractTrustedKeyHelper(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooHomeLocator homeLocator, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
isCustomAcceptedSshHostKeysEnabled
public boolean isCustomAcceptedSshHostKeysEnabled()- Specified by:
isCustomAcceptedSshHostKeysEnabled
in interfaceTrustedKeyHelper
- Returns:
- true if custom keys are enabled for Bamboo
-
getCustomAcceptedSshHostKeysFile
- Specified by:
getCustomAcceptedSshHostKeysFile
in interfaceTrustedKeyHelper
- Returns:
- file with trusted keys in SSH known_hosts format
-
onTrustedKeyRemoved
-
onTrustedKeySaved
-