Skip to content

Most visited

Recently visited

navigation
Added in API level 1

KeyStore.SecretKeyEntry

public static final class KeyStore.SecretKeyEntry
extends Object implements KeyStore.Entry

java.lang.Object
   ↳ java.security.KeyStore.SecretKeyEntry


SecretKeyEntry represents a KeyStore entry that holds a secret key.

Summary

Public constructors

KeyStore.SecretKeyEntry(SecretKey secretKey)

Constructs a new instance of SecretKeyEntry with the given SecretKey.

Public methods

SecretKey getSecretKey()

Returns the secret key.

String toString()

Returns a string containing a concise, human-readable description of this SecretKeyEntry.

Inherited methods

From class java.lang.Object

Public constructors

KeyStore.SecretKeyEntry

Added in API level 1
KeyStore.SecretKeyEntry (SecretKey secretKey)

Constructs a new instance of SecretKeyEntry with the given SecretKey.

Parameters
secretKey SecretKey: the secret key.
Throws
NullPointerException if secretKey is null.

Public methods

getSecretKey

Added in API level 1
SecretKey getSecretKey ()

Returns the secret key.

Returns
SecretKey the secret key.

toString

Added in API level 1
String toString ()

Returns a string containing a concise, human-readable description of this SecretKeyEntry.

Returns
String a printable representation for this SecretKeyEntry.
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.