diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-01-27 14:00:22 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-01-27 14:00:22 +0100 |
commit | 5aec25ac0501352e4cb6645c86869dde6e91f0d0 (patch) | |
tree | ee9adfd55cddf25f098e5e028d585a72de7cd70c /libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/PBEKey.java | |
parent | 8ca42b9bf953c6195ee0c17ef48a3154c126cc04 (diff) | |
download | open-keychain-5aec25ac0501352e4cb6645c86869dde6e91f0d0.tar.gz open-keychain-5aec25ac0501352e4cb6645c86869dde6e91f0d0.tar.bz2 open-keychain-5aec25ac0501352e4cb6645c86869dde6e91f0d0.zip |
Add spongy castle sources to libraries folder
Diffstat (limited to 'libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/PBEKey.java')
-rw-r--r-- | libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/PBEKey.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/PBEKey.java b/libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/PBEKey.java new file mode 100644 index 000000000..8d9ab1f67 --- /dev/null +++ b/libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/PBEKey.java @@ -0,0 +1,41 @@ +package javax.crypto.interfaces; + +import javax.crypto.SecretKey; + +/** + * The interface to a PBE key. + * + * @see PBEKeySpec, SecretKey + */ +public interface PBEKey + extends SecretKey +{ + /** + * Returns the password. + * + * Note: this method should return a copy of the password. It is the + * caller's responsibility to zero out the password information after it is + * no longer needed. + * + * @return the password. + */ + public char[] getPassword(); + + /** + * Returns the salt or null if not specified. + * + * Note: this method should return a copy of the salt. It is the caller's + * responsibility to zero out the salt information after it is no longer + * needed. + * + * @return the salt. + */ + public byte[] getSalt(); + + /** + * Returns the iteration count or 0 if not specified. + * + * @return the iteration count. + */ + public int getIterationCount(); +} |