Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 .