- java.lang.Object
-
- io.github.mmm.crypto.provider.SecurityProvider
-
-
Field Summary
Fields Modifier and Type Field Description static SecurityProvider
BC
TheSecurityProvider
for bouncy castle.static SecurityProvider
DEFAULT
The Java defaultSecurityProvider
(JCE).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(String name)
static SecurityProvider
of(Provider provider)
String
toString()
-
-
-
Field Detail
-
DEFAULT
public static final SecurityProvider DEFAULT
The Java defaultSecurityProvider
(JCE).
-
BC
public static final SecurityProvider BC
TheSecurityProvider
for bouncy castle.
-
-
Method Detail
-
createKeyPairGenerator
public KeyPairGenerator createKeyPairGenerator(String algorithm)
- Parameters:
algorithm
- thekey-pair generator algorithm
. See KeyPairGenerator Algorithms.- Returns:
- the (uninitialized)
KeyPairGenerator
instance.
-
createSecretKeyFactory
public SecretKeyFactory createSecretKeyFactory(String algorithm)
- Parameters:
algorithm
- thesecret key factory algorithm
. See SecretKeyFactory Algorithms.- Returns:
- the (uninitialized)
SecretKeyFactory
instance.
-
createSignature
public Signature createSignature(String algorithm)
- Parameters:
algorithm
- thesignature algorithm
. See Signature Algorithms.- Returns:
- the (uninitialized)
Signature
instance. - See Also:
SignatureAlgorithm
-
createCipher
public Cipher createCipher(String transformation)
- Parameters:
transformation
- theencryption algorithm
ortransformation
.- Returns:
- the (uninitialized)
Cipher
instance.
-
createDigest
public MessageDigest createDigest(String algorithm)
- Parameters:
algorithm
- thehash algorithm
(see MessageDigest Algorithms).- Returns:
- the (uninitialized)
MessageDigest
instance.
-
createSecureRandom
public SecureRandom createSecureRandom(String algorithm)
- Parameters:
algorithm
- thesecure random algorithm
(see SecureRandom Number Generation Algorithms).- Returns:
- the
SecureRandom
instance.
-
createCertificateFactory
public CertificateFactory createCertificateFactory(String type)
- Parameters:
type
- thetype
of theCertificateFactory
(see CertificateFactory Types).- Returns:
- the
CertificateFactory
instance.
-
createKeyFactory
public KeyFactory createKeyFactory(String algorithm)
- Parameters:
algorithm
- thealgorithm
of theKeyFactory
(see KeyFactory Algorithms).- Returns:
- the
KeyFactory
instance.
-
createKeyStore
public KeyStore createKeyStore(String type)
- Parameters:
type
- thetype
of theKeyStore
(see KeyStore Types).- Returns:
- the
KeyStore
instance.
-
of
public static SecurityProvider of(String name)
- Parameters:
name
- theprovider name
.- Returns:
- the
SecurityProvider
.
-
of
public static SecurityProvider of(Provider provider)
- Parameters:
provider
- theProvider
to wrap.- Returns:
- the
SecurityProvider
.
-
-