Class javax.crypto.spec.PBEKeySpec
java.lang.Object
|
+----javax.crypto.spec.PBEKeySpec
- public class PBEKeySpec
- extends java.lang.Object
- implements java.security.spec.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 Summary
|
PBEKeySpec(java.lang.String password)
Constructor that takes a password.
|
Method Summary
|
java.lang.String
|
getPassword()
Retrieves the password.
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PBEKeySpec
public PBEKeySpec(java.lang.String password)
- Constructor that takes a password.
- Parameters:
password
- the password used for password-based encryption
getPassword
public final java.lang.String getPassword()
- Retrieves the password.
- Returns:
- the password