From 5aec25ac0501352e4cb6645c86869dde6e91f0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Mon, 27 Jan 2014 14:00:22 +0100 Subject: Add spongy castle sources to libraries folder --- .../jce/src/main/java/javax/crypto/SecretKey.java | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libraries/spongycastle/jce/src/main/java/javax/crypto/SecretKey.java (limited to 'libraries/spongycastle/jce/src/main/java/javax/crypto/SecretKey.java') 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. + *

+ * This interface contains no methods or constants. + * Its only purpose is to group (and provide type safety for) secret keys. + *

+ * Provider implementations of this interface must overwrite the + * equals and hashCode methods inherited from + * java.lang.Object, so that secret keys are compared based on + * their underlying key material and not based on reference. + *

+ * Keys that implement this interface return the string RAW + * as their encoding format (see getFormat), and return the + * raw key bytes as the result of a getEncoded method call. (The + * getFormat and getEncoded methods are inherited + * from the java.security.Key parent interface.) + * + * @see SecretKeyFactory + * @see Cipher + */ +public abstract interface SecretKey + extends Key +{ +} -- cgit v1.2.3