Android APIs
public static final class

KeyStore.SecretKeyEntry

extends Object
implements KeyStore.Entry
java.lang.Object
   ↳ java.security.KeyStore.SecretKeyEntry

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public KeyStore.SecretKeyEntry (SecretKey secretKey)

Added in API level 1

Constructs a new instance of SecretKeyEntry with the given SecretKey.

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

Public Methods

public SecretKey getSecretKey ()

Added in API level 1

Returns the secret key.

Returns
  • the secret key.

public String toString ()

Added in API level 1

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

Returns
  • a printable representation for this SecretKeyEntry.