Package com.atlassian.bamboo.crypto
Class SshKeyUtils
java.lang.Object
com.atlassian.bamboo.crypto.SshKeyUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Path
decodeKeyAndWriteToTempFile
(@NotNull String sskKey, @Nullable String passphrase) static KeyPair
loadKeyFromFile
(@NotNull String filePath, @Nullable String passphrase) static KeyPair
loadKeyFromString
(String key, @Nullable String passphrase)
-
Method Details
-
loadKeyFromFile
-
loadKeyFromString
-
decodeKeyAndWriteToTempFile
@NotNull public static @NotNull Path decodeKeyAndWriteToTempFile(@NotNull @NotNull String sskKey, @Nullable @Nullable String passphrase) throws IOException, GeneralSecurityException - Throws:
IOException
GeneralSecurityException
-