org.apache.juddi.cryptor
Class DefaultCryptor

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

public class DefaultCryptor
extends java.lang.Object
implements Cryptor

Author:
Anou Manavalan

Constructor Summary
DefaultCryptor()
          Constructor for DefaultCryptor.
 
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
 

Constructor Detail

DefaultCryptor

public DefaultCryptor()
               throws java.security.NoSuchAlgorithmException,
                      java.security.spec.InvalidKeySpecException
Constructor for DefaultCryptor.

Throws:
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
Method Detail

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-2011 The Apache Software Foundation. All Rights Reserved.