Package javax.crypto.interfaces
Interface PBEKey
- All Superinterfaces:
Key,SecretKey,Serializable
- All Known Implementing Classes:
BCPBEKey
public interface PBEKey extends SecretKey
The interface to a password-based-encryption key.
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDThe serial version identifier. -
Method Summary
Modifier and Type Method Description intgetIterationCount()Returns the iteration count, 0 if not specified.char[]getPassword()Returns a copy to the password.byte[]getSalt()Returns a copy of the salt data or null if not specified.Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
-
Field Details
-
serialVersionUID
static final long serialVersionUIDThe serial version identifier.- See Also:
- Constant Field Values
-
-
Method Details
-
getIterationCount
int getIterationCount()Returns the iteration count, 0 if not specified.- Returns:
- the iteration count, 0 if not specified.
-
getSalt
byte[] getSalt()Returns a copy of the salt data or null if not specified.- Returns:
- a copy of the salt data or null if not specified.
-
getPassword
char[] getPassword()Returns a copy to the password.- Returns:
- a copy to the password.
-