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.

Author:
Adrian Cole

Method Summary
 CertificateFactory certFactory()
           
 Cipher cipher(String algorithm)
           
 MessageDigest digest(String algorithm)
           
 Mac hmac(String algorithm, byte[] key)
           
 Mac hmacSHA1(byte[] key)
           
 Mac hmacSHA256(byte[] key)
           
 MessageDigest md5()
           
 KeyFactory rsaKeyFactory()
           
 KeyPairGenerator rsaKeyPairGenerator()
           
 MessageDigest sha1()
           
 MessageDigest sha256()
           
 MessageDigest sha512()
           
 

Method Detail

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

digest

MessageDigest digest(String algorithm)
                     throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

md5

MessageDigest md5()

sha1

MessageDigest sha1()

sha256

MessageDigest sha256()

sha512

MessageDigest sha512()

cipher

Cipher cipher(String algorithm)
              throws NoSuchAlgorithmException,
                     NoSuchPaddingException
Throws:
NoSuchAlgorithmException
NoSuchPaddingException


Copyright © 2009-2012 jclouds. All Rights Reserved.