< prev index next >

src/java.base/share/classes/javax/crypto/SecretKey.java

Print this page




  47  * <p>Keys that implement this interface return the string {@code RAW}
  48  * as their encoding format (see {@code getFormat}), and return the
  49  * raw key bytes as the result of a {@code getEncoded} method call. (The
  50  * {@code getFormat} and {@code getEncoded} methods are inherited
  51  * from the {@link java.security.Key} parent interface.)
  52  *
  53  * @author Jan Luehe
  54  *
  55  * @see SecretKeyFactory
  56  * @see Cipher
  57  * @since 1.4
  58  */
  59 
  60 public interface SecretKey extends
  61     java.security.Key, javax.security.auth.Destroyable {
  62 
  63     /**
  64      * The class fingerprint that is set to indicate serialization
  65      * compatibility since J2SE 1.4.
  66      */

  67     static final long serialVersionUID = -4795878709595146952L;
  68 }


  47  * <p>Keys that implement this interface return the string {@code RAW}
  48  * as their encoding format (see {@code getFormat}), and return the
  49  * raw key bytes as the result of a {@code getEncoded} method call. (The
  50  * {@code getFormat} and {@code getEncoded} methods are inherited
  51  * from the {@link java.security.Key} parent interface.)
  52  *
  53  * @author Jan Luehe
  54  *
  55  * @see SecretKeyFactory
  56  * @see Cipher
  57  * @since 1.4
  58  */
  59 
  60 public interface SecretKey extends
  61     java.security.Key, javax.security.auth.Destroyable {
  62 
  63     /**
  64      * The class fingerprint that is set to indicate serialization
  65      * compatibility since J2SE 1.4.
  66      */
  67     @SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
  68     static final long serialVersionUID = -4795878709595146952L;
  69 }
< prev index next >