org.apache.juddi.cryptor
Class DefaultCryptor
java.lang.Object
org.apache.juddi.cryptor.DefaultCryptor
- All Implemented Interfaces:
- Cryptor
public class DefaultCryptor
- extends java.lang.Object
- implements Cryptor
- Author:
- Anou Manavalan
Method Summary |
java.lang.String |
encrypt(java.lang.String str)
Encrypt the string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCryptor
public DefaultCryptor()
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
- Constructor for DefaultCryptor.
- Throws:
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
encrypt
public java.lang.String encrypt(java.lang.String str)
throws javax.crypto.NoSuchPaddingException,
java.security.NoSuchAlgorithmException,
java.security.InvalidAlgorithmParameterException,
java.security.InvalidKeyException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
- Encrypt the string
- Specified by:
encrypt
in interface Cryptor
- Throws:
javax.crypto.NoSuchPaddingException
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.