Package org.jclouds.crypto
Interface Crypto
-
- All Known Implementing Classes:
BouncyCastleCrypto
,JCECrypto
public interface Crypto
Allows 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 CertificateFactory
certFactory()
Cipher
cipher(String algorithm)
Mac
hmac(String algorithm, byte[] key)
Mac
hmacSHA1(byte[] key)
Mac
hmacSHA256(byte[] key)
KeyFactory
rsaKeyFactory()
KeyPairGenerator
rsaKeyPairGenerator()
-
-
-
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
-
-