Package com.hierynomus.security
Interface SecurityProvider
-
- All Known Implementing Classes:
BCSecurityProvider
,JceSecurityProvider
public interface SecurityProvider
Abstraction layer over different Security Providers.Using this you can easily choose to either use:
- Standard JCE - BouncyCastle over JCE - BouncyCastle direct
The advantage of using BouncyCastle directly is that you do not need to have the JCE Unlimited Strength Cryptography policy files loaded in your JRE.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AEADBlockCipher
getAEADBlockCipher(java.lang.String name)
Cipher
getCipher(java.lang.String name)
DerivationFunction
getDerivationFunction(java.lang.String name)
MessageDigest
getDigest(java.lang.String name)
Mac
getMac(java.lang.String name)
-
-
-
Method Detail
-
getDigest
MessageDigest getDigest(java.lang.String name) throws SecurityException
- Throws:
SecurityException
-
getMac
Mac getMac(java.lang.String name) throws SecurityException
- Throws:
SecurityException
-
getCipher
Cipher getCipher(java.lang.String name) throws SecurityException
- Throws:
SecurityException
-
getAEADBlockCipher
AEADBlockCipher getAEADBlockCipher(java.lang.String name) throws SecurityException
- Throws:
SecurityException
-
getDerivationFunction
DerivationFunction getDerivationFunction(java.lang.String name) throws SecurityException
- Throws:
SecurityException
-
-