APIdia Launch Partner
Top Description Fields Methods
javax.crypto.interfaces

public Interface PBEKey

extends SecretKey
Known Direct Implementers
com.sun.crypto.provider.PBKDF2KeyImpl

The interface to a PBE key.
Author
Valerie Peng
Since
1.4
See Also
javax.crypto.spec.PBEKeySpec, javax.crypto.SecretKey

Field Summary

Modifier and TypeField and Description
public static final long
serialVersionUID

Hides javax.crypto.SecretKey.serialVersionUID.

Deprecated A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.
The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the iteration count.
getIterationCount
()

Returns the iteration count or 0 if not specified.

public char[]

Returns:

the password.
getPassword
()

Returns the password.

public byte[]

Returns:

the salt.
getSalt
()

Returns the salt or null if not specified.

Field Detail

serialVersionUIDback to summary
public static final long serialVersionUID

Hides javax.crypto.SecretKey.serialVersionUID.

Deprecated

A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.

The class fingerprint that is set to indicate serialization compatibility since J2SE 1.4.

Annotations
@Deprecated
@Serial

Method Detail

getIterationCountback to summary
public int getIterationCount()

Returns the iteration count or 0 if not specified.

Returns:int

the iteration count.

getPasswordback to summary
public char[] getPassword()

Returns the password.

Note

this method should return a copy of the password. It is the caller's responsibility to zero out the password information after it is no longer needed.

Returns:char[]

the password.

getSaltback to summary
public byte[] getSalt()

Returns the salt or null if not specified.

Note

this method should return a copy of the salt. It is the caller's responsibility to zero out the salt information after it is no longer needed.

Returns:byte[]

the salt.