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 org.bouncycastle.crypto.params.AsymmetricKeyParameter |
getKeyParameters(PrivateKey privateKey)
Creates
AsymmetricKeyParameter from a PrivateKey |
static Provider |
getProvider() |
static String |
getProviderName() |
static KeyPair |
toJavaKeyPair(Object keyPair,
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 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 Object keyPair, @Nullable String passPhrase) throws IOException
IOException
@NotNull public static org.bouncycastle.crypto.params.AsymmetricKeyParameter getKeyParameters(PrivateKey privateKey)
AsymmetricKeyParameter
from a PrivateKey
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.