org.netbeans.lib.uihandler 1.30

org.netbeans.lib.uihandler
Class PasswdEncryption

java.lang.Object
  extended by org.netbeans.lib.uihandler.PasswdEncryption

public class PasswdEncryption
extends Object


Field Summary
static int MAX_ENCRYPTION_LENGHT
           
 
Constructor Summary
PasswdEncryption()
           
 
Method Summary
static byte[] decrypt(byte[] text, PrivateKey key)
           
static String decrypt(String text, PrivateKey key)
           
static byte[] encrypt(byte[] text)
           
static byte[] encrypt(byte[] text, PublicKey key)
           
static String encrypt(String text)
           
static String encrypt(String text, PublicKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_ENCRYPTION_LENGHT

public static final int MAX_ENCRYPTION_LENGHT
See Also:
Constant Field Values
Constructor Detail

PasswdEncryption

public PasswdEncryption()
Method Detail

encrypt

public static String encrypt(String text)
                      throws IOException,
                             GeneralSecurityException
Throws:
IOException
GeneralSecurityException

encrypt

public static byte[] encrypt(byte[] text)
                      throws IOException,
                             GeneralSecurityException
Throws:
IOException
GeneralSecurityException

encrypt

public static byte[] encrypt(byte[] text,
                             PublicKey key)
                      throws IOException,
                             GeneralSecurityException
Throws:
IOException
GeneralSecurityException

decrypt

public static byte[] decrypt(byte[] text,
                             PrivateKey key)
                      throws IOException,
                             GeneralSecurityException
Throws:
IOException
GeneralSecurityException

encrypt

public static String encrypt(String text,
                             PublicKey key)
                      throws IOException,
                             GeneralSecurityException
Throws:
IOException
GeneralSecurityException

decrypt

public static String decrypt(String text,
                             PrivateKey key)
                      throws IOException,
                             GeneralSecurityException
Throws:
IOException
GeneralSecurityException

org.netbeans.lib.uihandler 1.30

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.