本文整理汇总了Java中org.bouncycastle.jce.provider.BouncyCastleProvider.PROVIDER_NAME属性的典型用法代码示例。如果您正苦于以下问题:Java BouncyCastleProvider.PROVIDER_NAME属性的具体用法?Java BouncyCastleProvider.PROVIDER_NAME怎么用?Java BouncyCastleProvider.PROVIDER_NAME使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.bouncycastle.jce.provider.BouncyCastleProvider
的用法示例。
在下文中一共展示了BouncyCastleProvider.PROVIDER_NAME属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PKCS10CertificationRequest
/**
* create a PKCS10 certfication request using the BC provider.
*/
public PKCS10CertificationRequest(
String signatureAlgorithm,
X509Name subject,
PublicKey key,
ASN1Set attributes,
PrivateKey signingKey)
throws NoSuchAlgorithmException, NoSuchProviderException,
InvalidKeyException, SignatureException
{
this(signatureAlgorithm, subject, key, attributes, signingKey, BouncyCastleProvider.PROVIDER_NAME);
}
示例2: getKeyStoreProvider
/**
* Returns the provider that will be used for the given keyStoreType
*
* @param keyStoreType the keyStoreType
* @return the provider that will be used
*/
public static String getKeyStoreProvider(String keyStoreType) {
if (KeystoreType.PKCS12.toString().equalsIgnoreCase(keyStoreType)) {
return BouncyCastleProvider.PROVIDER_NAME;
}
return null;
}