Package com.atlassian.bamboo.security
Interface TrustedKeyHelper
-
- All Known Implementing Classes:
AbstractTrustedKeyHelper
,RemoteTrustedKeyHelperImpl
,ServerTrustedKeyHelperImpl
@Internal public interface TrustedKeyHelper
Used by server and agents to have access to Trusted keys file- Since:
- 5.10.1
-
-
Field Summary
Fields Modifier and Type Field Description static Function<TrustedKey,String>
KNOWN_HOSTS_FUNCTION
Prepare row for known_hosts file
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull File
getCustomAcceptedSshHostKeysFile()
@NotNull Collection<TrustedKey>
getTrustedKeys()
boolean
isCustomAcceptedSshHostKeysEnabled()
-
-
-
Field Detail
-
KNOWN_HOSTS_FUNCTION
static final Function<TrustedKey,String> KNOWN_HOSTS_FUNCTION
Prepare row for known_hosts file
-
-
Method Detail
-
isCustomAcceptedSshHostKeysEnabled
boolean isCustomAcceptedSshHostKeysEnabled()
- Returns:
- true if custom keys are enabled for Bamboo
-
getCustomAcceptedSshHostKeysFile
@NotNull @NotNull File getCustomAcceptedSshHostKeysFile()
- Returns:
- file with trusted keys in SSH known_hosts format
-
getTrustedKeys
@NotNull @NotNull Collection<TrustedKey> getTrustedKeys()
- Returns:
- trusted keys
-
-