Package com.atlassian.bamboo.crypto
Class SshKeyUtils
- java.lang.Object
-
- com.atlassian.bamboo.crypto.SshKeyUtils
-
public class SshKeyUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @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 Detail
-
loadKeyFromFile
public static KeyPair loadKeyFromFile(@NotNull @NotNull String filePath, @Nullable @Nullable String passphrase)
-
loadKeyFromString
public static KeyPair loadKeyFromString(String key, @Nullable @Nullable String passphrase)
-
decodeKeyAndWriteToTempFile
@NotNull public static @NotNull Path decodeKeyAndWriteToTempFile(@NotNull @NotNull String sskKey, @Nullable @Nullable String passphrase) throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
-