Class RemoteTrustedKeyHelperImpl
- java.lang.Object
-
- com.atlassian.bamboo.security.AbstractTrustedKeyHelper
-
- com.atlassian.bamboo.agent.remote.security.RemoteTrustedKeyHelperImpl
-
- All Implemented Interfaces:
TrustedKeyHelper
@Component public class RemoteTrustedKeyHelperImpl extends AbstractTrustedKeyHelper
Trusted key helper works at agent side
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.security.AbstractTrustedKeyHelper
fileSupplier
-
Fields inherited from interface com.atlassian.bamboo.security.TrustedKeyHelper
KNOWN_HOSTS_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description RemoteTrustedKeyHelperImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor, ServerStateService serverStateService, BambooHomeLocator homeLocator, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Set<TrustedKey>
getTrustedKeys()
boolean
isCustomAcceptedSshHostKeysEnabled()
void
onTrustedKeyRemoved(TrustedKeyRemovedEvent event)
void
onTrustedKeySaved(TrustedKeySavedEvent event)
-
Methods inherited from class com.atlassian.bamboo.security.AbstractTrustedKeyHelper
getCustomAcceptedSshHostKeysFile
-
-
-
-
Constructor Detail
-
RemoteTrustedKeyHelperImpl
@Autowired public RemoteTrustedKeyHelperImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor, ServerStateService serverStateService, BambooHomeLocator homeLocator, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
onTrustedKeyRemoved
@EventListener public void onTrustedKeyRemoved(TrustedKeyRemovedEvent event)
- Overrides:
onTrustedKeyRemoved
in classAbstractTrustedKeyHelper
-
onTrustedKeySaved
@EventListener public void onTrustedKeySaved(TrustedKeySavedEvent event)
- Overrides:
onTrustedKeySaved
in classAbstractTrustedKeyHelper
-
isCustomAcceptedSshHostKeysEnabled
public boolean isCustomAcceptedSshHostKeysEnabled()
- Specified by:
isCustomAcceptedSshHostKeysEnabled
in interfaceTrustedKeyHelper
- Overrides:
isCustomAcceptedSshHostKeysEnabled
in classAbstractTrustedKeyHelper
- Returns:
- true if custom keys are enabled for Bamboo
-
getTrustedKeys
@NotNull public @NotNull Set<TrustedKey> getTrustedKeys()
- Returns:
- trusted keys
-
-