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

Public Constructors

public KeyStore.SecretKeyEntry (SecretKey secretKey)

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 ()

Returns the secret key.

Returns
  • the secret key.

public String toString ()

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

Returns
  • a printable representation for this SecretKeyEntry.