org.jclouds.crypto
Interface Crypto
- All Known Implementing Classes:
- JCECrypto
public interface Crypto
Allows you to access cryptographic objects and factories without adding a provider to the JCE runtime.
- Author:
- Adrian Cole
rsaKeyPairGenerator
KeyPairGenerator rsaKeyPairGenerator()
rsaKeyFactory
KeyFactory rsaKeyFactory()
certFactory
CertificateFactory certFactory()
hmac
Mac hmac(String algorithm,
byte[] key)
throws NoSuchAlgorithmException,
InvalidKeyException
- 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
- Throws:
NoSuchAlgorithmException
NoSuchPaddingException
Copyright © 2009-2013 jclouds. All Rights Reserved.