org.jclouds.encryption.bouncycastle
Class BouncyCastleCrypto
java.lang.Object
org.jclouds.encryption.internal.JCECrypto
org.jclouds.encryption.bouncycastle.BouncyCastleCrypto
- All Implemented Interfaces:
- org.jclouds.crypto.Crypto
@Singleton
public class BouncyCastleCrypto
- extends org.jclouds.encryption.internal.JCECrypto
|
Method Summary |
Cipher |
cipher(String algorithm)
Override the standard implementation to convert the "RSA" algorithm to the String that bouncycastle expects. |
| Methods inherited from class org.jclouds.encryption.internal.JCECrypto |
certFactory, hmac, hmacSHA1, hmacSHA256, rsaKeyFactory, rsaKeyPairGenerator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BouncyCastleCrypto
public BouncyCastleCrypto()
throws NoSuchAlgorithmException,
CertificateException
- Throws:
NoSuchAlgorithmException
CertificateException
cipher
public Cipher cipher(String algorithm)
throws NoSuchAlgorithmException,
NoSuchPaddingException
- Override the standard implementation to convert the "RSA" algorithm to the String that bouncycastle expects.
See org.jclouds.encryption.bouncycastle.BouncyCastlePasswordDecryptionTest for how this effects password decryption.
- Specified by:
cipher in interface org.jclouds.crypto.Crypto- Overrides:
cipher in class org.jclouds.encryption.internal.JCECrypto
- Throws:
NoSuchAlgorithmException
NoSuchPaddingException
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.