org.apache.juddi.cryptor
Class DefaultCryptor

java.lang.Object
  extended by org.apache.juddi.cryptor.DefaultCryptor
All Implemented Interfaces:
Cryptor

public class DefaultCryptor
extends Object
implements Cryptor

Author:
Anou Manavalan

Constructor Summary
DefaultCryptor()
          Constructor for DefaultCryptor.
 
Method Summary
 String encrypt(String str)
          Encrypt the string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCryptor

public DefaultCryptor()
               throws NoSuchAlgorithmException,
                      InvalidKeySpecException
Constructor for DefaultCryptor.

Throws:
NoSuchAlgorithmException
InvalidKeySpecException
Method Detail

encrypt

public String encrypt(String str)
               throws NoSuchPaddingException,
                      NoSuchAlgorithmException,
                      InvalidAlgorithmParameterException,
                      InvalidKeyException,
                      IllegalBlockSizeException,
                      BadPaddingException
Encrypt the string

Specified by:
encrypt in interface Cryptor
Throws:
NoSuchPaddingException
NoSuchAlgorithmException
InvalidAlgorithmParameterException
InvalidKeyException
IllegalBlockSizeException
BadPaddingException


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.