| Modifier and Type | Field and Description |
|---|---|
static SecurityProvider |
BC
The
SecurityProvider for bouncy castle. |
static SecurityProvider |
DEFAULT
The Java default
SecurityProvider (JCE). |
private Provider |
provider |
private String |
providerName |
| Modifier | Constructor and Description |
|---|---|
private |
SecurityProvider() |
private |
SecurityProvider(Provider provider) |
private |
SecurityProvider(Provider provider,
String providerName) |
private |
SecurityProvider(String providerName) |
| Modifier and Type | Method and Description |
|---|---|
CertificateFactory |
createCertificateFactory(String type) |
Cipher |
createCipher(String transformation) |
MessageDigest |
createDigest(String algorithm) |
KeyFactory |
createKeyFactory(String algorithm) |
KeyPairGenerator |
createKeyPairGenerator(String algorithm) |
KeyStore |
createKeyStore(String type) |
SecretKeyFactory |
createSecretKeyFactory(String algorithm) |
SecureRandom |
createSecureRandom(String algorithm) |
Signature |
createSignature(String algorithm) |
static SecurityProvider |
of(Provider provider) |
static SecurityProvider |
of(String name) |
String |
toString() |
public static final SecurityProvider DEFAULT
SecurityProvider (JCE).public static final SecurityProvider BC
SecurityProvider for bouncy castle.private final Provider provider
private final String providerName
private SecurityProvider()
private SecurityProvider(String providerName)
private SecurityProvider(Provider provider)
public KeyPairGenerator createKeyPairGenerator(String algorithm)
algorithm - the key-pair generator algorithm. See KeyPairGenerator
Algorithms.KeyPairGenerator instance.public SecretKeyFactory createSecretKeyFactory(String algorithm)
algorithm - the secret key factory algorithm. See SecretKeyFactory
Algorithms.SecretKeyFactory instance.public Signature createSignature(String algorithm)
algorithm - the signature algorithm. See Signature
Algorithms.Signature instance.SignatureAlgorithmpublic Cipher createCipher(String transformation)
transformation - the encryption algorithm or
transformation.Cipher instance.public MessageDigest createDigest(String algorithm)
algorithm - the hash algorithm (see MessageDigest
Algorithms).MessageDigest instance.public SecureRandom createSecureRandom(String algorithm)
algorithm - the secure random algorithm (see SecureRandom
Number Generation Algorithms).SecureRandom instance.public CertificateFactory createCertificateFactory(String type)
type - the type of the CertificateFactory (see CertificateFactory
Types).CertificateFactory instance.public KeyFactory createKeyFactory(String algorithm)
algorithm - the algorithm of the KeyFactory (see KeyFactory
Algorithms).KeyFactory instance.public KeyStore createKeyStore(String type)
type - the type of the KeyStore (see KeyStore
Types).KeyStore instance.public static SecurityProvider of(String name)
name - the provider name.SecurityProvider.public static SecurityProvider of(Provider provider)
provider - the Provider to wrap.SecurityProvider.Copyright © 2001–2019 mmm-Team. All rights reserved.