Most visited

Recently visited

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


A KeyStore entry that holds a SecretKey.

Summary

Public constructors

KeyStore.SecretKeyEntry(SecretKey secretKey)

Constructs a SecretKeyEntry with a SecretKey.

Public methods

SecretKey getSecretKey()

Gets the SecretKey from this entry.

String toString()

Returns a string representation 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 SecretKeyEntry with a SecretKey.

Parameters
secretKey SecretKey: the SecretKey
Throws
NullPointerException if secretKey is null

Public methods

getSecretKey

Added in API level 1
SecretKey getSecretKey ()

Gets the SecretKey from this entry.

Returns
SecretKey the SecretKey from this entry

toString

Added in API level 1
String toString ()

Returns a string representation of this SecretKeyEntry.

Returns
String a string representation of this SecretKeyEntry.

Hooray!