This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.crypto
interface SecretKey

All Superinterfaces:
Key, Serializable
All Known Subinterfaces:
PBEKey
All Known Implementing Classes:
KerberosKey, SecretKeySpec

Most common way to construct:

KeyGenerator keyGen = …;

SecretKey key = keyGen.generateKey();

Based on 130 examples


public interface SecretKey
extends 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.)


Field Summary
static long serialVersionUID
          The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.
 
Fields inherited from class java.security.Key
serialVersionUID
 
Method Summary
 
Methods inherited from class java.security.Key
getAlgorithm, getEncoded, getFormat
 

Field Detail

serialVersionUID

public static final long serialVersionUID
The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.