Package org.jclouds.crypto
Interface Crypto
-
- All Known Implementing Classes:
BouncyCastleCrypto,JCECrypto
public interface CryptoAllows you to access cryptographic objects and factories without adding a provider to the JCE runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CertificateFactorycertFactory()Ciphercipher(String algorithm)Machmac(String algorithm, byte[] key)MachmacSHA1(byte[] key)MachmacSHA256(byte[] key)KeyFactoryrsaKeyFactory()KeyPairGeneratorrsaKeyPairGenerator()
-
-
-
Method Detail
-
rsaKeyPairGenerator
KeyPairGenerator rsaKeyPairGenerator()
-
rsaKeyFactory
KeyFactory rsaKeyFactory()
-
certFactory
CertificateFactory certFactory()
-
hmac
Mac hmac(String algorithm, byte[] key) throws NoSuchAlgorithmException, InvalidKeyException
-
hmacSHA256
Mac hmacSHA256(byte[] key) throws InvalidKeyException
- Throws:
InvalidKeyException
-
hmacSHA1
Mac hmacSHA1(byte[] key) throws InvalidKeyException
- Throws:
InvalidKeyException
-
cipher
Cipher cipher(String algorithm) throws NoSuchAlgorithmException, NoSuchPaddingException
-
-