to top
Android APIs
public interface

PBEKey

implements SecretKey
javax.crypto.interfaces.PBEKey

Class Overview

The interface to a password-based-encryption key.

Summary

Constants
long serialVersionUID The serial version identifier.
[Expand]
Inherited Constants
From interface java.security.Key
From interface javax.crypto.SecretKey
Public Methods
abstract int getIterationCount()
Returns the iteration count, 0 if not specified.
abstract char[] getPassword()
Returns a copy to the password.
abstract byte[] getSalt()
Returns a copy of the salt data or null if not specified.
[Expand]
Inherited Methods
From interface java.security.Key

Constants

public static final long serialVersionUID

Added in API level 1

The serial version identifier.

Constant Value: -1430015993304333921 (0xec279007d7f7c19f)

Public Methods

public abstract int getIterationCount ()

Added in API level 1

Returns the iteration count, 0 if not specified.

Returns
  • the iteration count, 0 if not specified.

public abstract char[] getPassword ()

Added in API level 1

Returns a copy to the password.

Returns
  • a copy to the password.

public abstract byte[] getSalt ()

Added in API level 1

Returns a copy of the salt data or null if not specified.

Returns
  • a copy of the salt data or null if not specified.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.