org.apache.juddi.cryptor
Interface Cryptor

All Known Implementing Classes:
DefaultCryptor

public interface Cryptor

Author:
Anou Manavalan

Method Summary
 byte[] decrypt(byte[] bytes)
          Decrypt the string
 java.lang.String decrypt(java.lang.String str)
           
 byte[] encrypt(byte[] bytes)
          Encrypt the string
 java.lang.String encrypt(java.lang.String str)
           
 

Method Detail

encrypt

byte[] encrypt(byte[] bytes)
               throws javax.crypto.NoSuchPaddingException,
                      java.security.NoSuchAlgorithmException,
                      java.security.InvalidAlgorithmParameterException,
                      java.security.InvalidKeyException,
                      javax.crypto.IllegalBlockSizeException,
                      javax.crypto.BadPaddingException
Encrypt the string

Throws:
javax.crypto.NoSuchPaddingException
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException

encrypt

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
Throws:
javax.crypto.NoSuchPaddingException
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException

decrypt

byte[] decrypt(byte[] bytes)
               throws javax.crypto.NoSuchPaddingException,
                      java.security.NoSuchAlgorithmException,
                      java.security.InvalidAlgorithmParameterException,
                      java.security.InvalidKeyException,
                      javax.crypto.IllegalBlockSizeException,
                      javax.crypto.BadPaddingException
Decrypt the string

Throws:
javax.crypto.NoSuchPaddingException
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException

decrypt

java.lang.String decrypt(java.lang.String str)
                         throws javax.crypto.NoSuchPaddingException,
                                java.security.NoSuchAlgorithmException,
                                java.security.InvalidAlgorithmParameterException,
                                java.security.InvalidKeyException,
                                javax.crypto.IllegalBlockSizeException,
                                javax.crypto.BadPaddingException
Throws:
javax.crypto.NoSuchPaddingException
java.security.NoSuchAlgorithmException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException


Copyright © 2004-2007. All Rights Reserved.