Skip to content

Most visited

Recently visited

navigation
Added in API level 1

SecretKey

public interface SecretKey
implements Key

javax.crypto.SecretKey
Known Indirect Subclasses


A cryptographic secret (symmetric) key.

This interface is a marker interface to group secret keys and to provide type safety for.

Implementations of this interface have to overwrite the equals and hashCode from Object so comparison is done using the actual key data and not the object reference.

Summary

Constants

long serialVersionUID

The serialization version identifier.

Inherited constants

From interface java.security.Key

Inherited methods

From interface java.security.Key

Constants

serialVersionUID

Added in API level 1
long serialVersionUID

The serialization version identifier.

Constant Value: -4795878709595146952 (0xbd719db928b8f538)

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.