- java.lang.Object
-
- io.github.mmm.crypto.provider.SecurityProvider
-
-
Field Summary
Fields Modifier and Type Field Description static SecurityProviderBCTheSecurityProviderfor bouncy castle.static SecurityProviderDEFAULTThe Java defaultSecurityProvider(JCE).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateFactorycreateCertificateFactory(String type)CiphercreateCipher(String transformation)MessageDigestcreateDigest(String algorithm)KeyFactorycreateKeyFactory(String algorithm)KeyPairGeneratorcreateKeyPairGenerator(String algorithm)KeyStorecreateKeyStore(String type)SecretKeyFactorycreateSecretKeyFactory(String algorithm)SecureRandomcreateSecureRandom(String algorithm)SignaturecreateSignature(String algorithm)static SecurityProviderof(String name)static SecurityProviderof(Provider provider)StringtoString()
-
-
-
Field Detail
-
DEFAULT
public static final SecurityProvider DEFAULT
The Java defaultSecurityProvider(JCE).
-
BC
public static final SecurityProvider BC
TheSecurityProviderfor bouncy castle.
-
-
Method Detail
-
createKeyPairGenerator
public KeyPairGenerator createKeyPairGenerator(String algorithm)
- Parameters:
algorithm- thekey-pair generator algorithm. See KeyPairGenerator Algorithms.- Returns:
- the (uninitialized)
KeyPairGeneratorinstance.
-
createSecretKeyFactory
public SecretKeyFactory createSecretKeyFactory(String algorithm)
- Parameters:
algorithm- thesecret key factory algorithm. See SecretKeyFactory Algorithms.- Returns:
- the (uninitialized)
SecretKeyFactoryinstance.
-
createSignature
public Signature createSignature(String algorithm)
- Parameters:
algorithm- thesignature algorithm. See Signature Algorithms.- Returns:
- the (uninitialized)
Signatureinstance. - See Also:
SignatureAlgorithm
-
createCipher
public Cipher createCipher(String transformation)
- Parameters:
transformation- theencryption algorithmortransformation.- Returns:
- the (uninitialized)
Cipherinstance.
-
createDigest
public MessageDigest createDigest(String algorithm)
- Parameters:
algorithm- thehash algorithm(see MessageDigest Algorithms).- Returns:
- the (uninitialized)
MessageDigestinstance.
-
createSecureRandom
public SecureRandom createSecureRandom(String algorithm)
- Parameters:
algorithm- thesecure random algorithm(see SecureRandom Number Generation Algorithms).- Returns:
- the
SecureRandominstance.
-
createCertificateFactory
public CertificateFactory createCertificateFactory(String type)
- Parameters:
type- thetypeof theCertificateFactory(see CertificateFactory Types).- Returns:
- the
CertificateFactoryinstance.
-
createKeyFactory
public KeyFactory createKeyFactory(String algorithm)
- Parameters:
algorithm- thealgorithmof theKeyFactory(see KeyFactory Algorithms).- Returns:
- the
KeyFactoryinstance.
-
createKeyStore
public KeyStore createKeyStore(String type)
- Parameters:
type- thetypeof theKeyStore(see KeyStore Types).- Returns:
- the
KeyStoreinstance.
-
of
public static SecurityProvider of(String name)
- Parameters:
name- theprovider name.- Returns:
- the
SecurityProvider.
-
of
public static SecurityProvider of(Provider provider)
- Parameters:
provider- theProviderto wrap.- Returns:
- the
SecurityProvider.
-
-