public class BouncyCastleProviderUtils extends Object
Modifier and Type | Field and Description |
---|---|
static org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter |
JCA_PEM_KEY_CONVERTER |
Modifier and Type | Method and Description |
---|---|
static @NotNull Path |
decodeKeyAndWriteToFile(File sshKeyFile,
@NotNull String sskKey,
@Nullable String passphrase) |
static @NotNull org.bouncycastle.crypto.params.AsymmetricKeyParameter |
getKeyParameters(PrivateKey privateKey)
Creates
AsymmetricKeyParameter from a PrivateKey |
static @NotNull Provider |
getProvider() |
static String |
getProviderName() |
static KeyPair |
toJavaKeyPair(@NotNull Object keyPair,
@Nullable String passPhrase) |
static KeyPair |
toJavaKeyPair(org.bouncycastle.openssl.PEMKeyPair keyPair) |
public static final org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter JCA_PEM_KEY_CONVERTER
public static String getProviderName()
@NotNull public static @NotNull Provider getProvider()
public static KeyPair toJavaKeyPair(org.bouncycastle.openssl.PEMKeyPair keyPair) throws org.bouncycastle.openssl.PEMException
org.bouncycastle.openssl.PEMException
public static KeyPair toJavaKeyPair(@NotNull @NotNull Object keyPair, @Nullable @Nullable String passPhrase) throws IOException
IOException
@NotNull public static @NotNull org.bouncycastle.crypto.params.AsymmetricKeyParameter getKeyParameters(PrivateKey privateKey)
AsymmetricKeyParameter
from a PrivateKey
@NotNull public static @NotNull Path decodeKeyAndWriteToFile(File sshKeyFile, @NotNull @NotNull String sskKey, @Nullable @Nullable String passphrase) throws IOException
IOException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences