Package com.atlassian.bamboo.crypto
Class BouncyCastleProviderUtils
java.lang.Object
com.atlassian.bamboo.crypto.BouncyCastleProviderUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PathdecodeKeyAndWriteToFile(File sshKeyFile, @NotNull String sskKey, @Nullable String passphrase) static @NotNull org.bouncycastle.crypto.params.AsymmetricKeyParametergetKeyParameters(PrivateKey privateKey) CreatesAsymmetricKeyParameterfrom aPrivateKeystatic @NotNull Providerstatic Stringstatic KeyPairtoJavaKeyPair(@NotNull Object keyPair, @Nullable String passPhrase) static KeyPairtoJavaKeyPair(org.bouncycastle.openssl.PEMKeyPair keyPair)
-
Field Details
-
JCA_PEM_KEY_CONVERTER
public static final org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter JCA_PEM_KEY_CONVERTER
-
-
Method Details
-
getProviderName
-
getProvider
-
toJavaKeyPair
public static KeyPair toJavaKeyPair(org.bouncycastle.openssl.PEMKeyPair keyPair) throws org.bouncycastle.openssl.PEMException - Throws:
org.bouncycastle.openssl.PEMException
-
toJavaKeyPair
public static KeyPair toJavaKeyPair(@NotNull @NotNull Object keyPair, @Nullable @Nullable String passPhrase) throws IOException - Throws:
IOException
-
getKeyParameters
@NotNull public static @NotNull org.bouncycastle.crypto.params.AsymmetricKeyParameter getKeyParameters(PrivateKey privateKey) CreatesAsymmetricKeyParameterfrom aPrivateKey -
decodeKeyAndWriteToFile
@NotNull public static @NotNull Path decodeKeyAndWriteToFile(File sshKeyFile, @NotNull @NotNull String sskKey, @Nullable @Nullable String passphrase) throws IOException - Throws:
IOException
-