Top Description Fields Constructors Methods
org.bouncycastle.jcajce

public Class PBKDF1Key

extends Object
implements PBKDFKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.jcajce.PBKDFKey, javax.crypto.SecretKey, javax.security.auth.Destroyable, java.security.Key, java.io.Serializable
Known Direct Subclasses
org.bouncycastle.jcajce.PBKDF1KeyWithParameters
Imports
org.bouncycastle.crypto.CharToByteConverter

A password based key for use with PBKDF1 as defined in PKCS#5.

Field Summary

Modifier and TypeField and Description
private final CharToByteConverter
private final char[]

Constructor Summary

AccessConstructor and Description
public
PBKDF1Key(char[]
password to use.
password
,
CharToByteConverter
the converter to use to turn the char array into octets.
converter
)

Basic constructor for a password based key with generation parameters for PBKDF1.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the string "PBKDF1"
getAlgorithm
()

Implements java.security.Key.getAlgorithm.

Return the password based key derivation function this key is for,
public byte[]

Returns:

the password converted to a byte array.
getEncoded
()

Implements java.security.Key.getEncoded.

Return the password converted to bytes.
public String

Returns:

the type name representing a char[] to byte[] conversion.
getFormat
()

Implements java.security.Key.getFormat.

Return the format encoding.
public char[]

Returns:

a reference to the password array.
getPassword
()

Return a reference to the char[] array holding the password.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

converterback to summary
private final CharToByteConverter converter
passwordback to summary
private final char[] password

Constructor Detail

PBKDF1Keyback to summary
public PBKDF1Key(char[] password, CharToByteConverter converter)

Basic constructor for a password based key with generation parameters for PBKDF1.

Parameters
password:char[]

password to use.

converter:CharToByteConverter

the converter to use to turn the char array into octets.

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements java.security.Key.getAlgorithm.

Return the password based key derivation function this key is for,

Returns:String

the string "PBKDF1"

getEncodedback to summary
public byte[] getEncoded()

Implements java.security.Key.getEncoded.

Return the password converted to bytes.

Returns:byte[]

the password converted to a byte array.

getFormatback to summary
public String getFormat()

Implements java.security.Key.getFormat.

Return the format encoding.

Returns:String

the type name representing a char[] to byte[] conversion.

getPasswordback to summary
public char[] getPassword()

Return a reference to the char[] array holding the password.

Returns:char[]

a reference to the password array.