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/SecretKey.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/SecretKey.java')
-rw-r--r-- | libraries/spongycastle/jce/src/main/java/javax/crypto/SecretKey.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libraries/spongycastle/jce/src/main/java/javax/crypto/SecretKey.java b/libraries/spongycastle/jce/src/main/java/javax/crypto/SecretKey.java new file mode 100644 index 000000000..8b22f02af --- /dev/null +++ b/libraries/spongycastle/jce/src/main/java/javax/crypto/SecretKey.java @@ -0,0 +1,28 @@ +package javax.crypto; + +import java.security.Key; + +/** + * A secret (symmetric) key. + * <p> + * This interface contains no methods or constants. + * Its only purpose is to group (and provide type safety for) secret keys. + * <p> + * Provider implementations of this interface must overwrite the + * <code>equals</code> and <code>hashCode</code> methods inherited from + * <code>java.lang.Object</code>, so that secret keys are compared based on + * their underlying key material and not based on reference. + * <p> + * Keys that implement this interface return the string <code>RAW</code> + * as their encoding format (see <code>getFormat</code>), and return the + * raw key bytes as the result of a <code>getEncoded</code> method call. (The + * <code>getFormat</code> and <code>getEncoded</code> methods are inherited + * from the <code>java.security.Key</code> parent interface.) + * + * @see SecretKeyFactory + * @see Cipher + */ +public abstract interface SecretKey + extends Key +{ +} |