All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.crypto.spec.PBEKeySpec

java.lang.Object
   |
   +----javax.crypto.spec.PBEKeySpec

public class PBEKeySpec
extends Object
implements KeySpec
A user-chosen password that can be used with password-based encryption.

The password can be viewed as some kind of raw key material, from which the encryption mechanism to which it is passed derives a cryptographic key.

See PKCS#5: Password-Based Encryption Standard for more details on password-based encryption.

See Also:
SecretKeyFactory, PBEParameterSpec

Constructor Index

 o PBEKeySpec(String)
Constructor that takes a password.

Method Index

 o getPassword()
Retrieves the password.

Constructors

 o PBEKeySpec
 public PBEKeySpec(String password)
Constructor that takes a password.

Parameters:
password - the password used for password-based encryption

Methods

 o getPassword
 public final String getPassword()
Retrieves the password.

Returns:
the password

All Packages  Class Hierarchy  This Package  Previous  Next  Index