| Modifier and Type | Field and Description |
|---|---|
| private final transient Cleaner. | |
| private final int | |
| private final byte[] | |
| private final char[] | |
| private final transient Mac | |
| private final byte[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | PBKDF2KeyImpl(PBEKeySpec
the given PBE key specification keySpec, String the given PBE key algorithm prfAlgo)Creates a PBE key from a given PBE key specification. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static byte[] | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | getAlgorithm()
Implements java. Returns the standard algorithm name for this key. |
| public byte[] | getEncoded()
Implements java. Returns the key in its primary encoding format, or |
| public String | getFormat()
Implements java. Returns the name of the primary encoding format of this key,
or |
| public int | getIterationCount()
Implements javax. Returns the iteration count or 0 if not specified. |
| public char[] | |
| public byte[] | getSalt()
Implements javax. Returns the salt or null if not specified. |
| public int | |
| private void | readObject(ObjectInputStream
the stream)ObjectInputStream from which data is readRestores the state of this object from the stream. |
| private Object | Returns: the standard KeyRep object to be serializedReplace the PBE key to be serialized. |
| cleaner | back to summary |
|---|---|
| private final transient Cleaner. | |
| iterCount | back to summary |
|---|---|
| private final int iterCount | |
| key | back to summary |
|---|---|
| private final byte[] key | |
| passwd | back to summary |
|---|---|
| private final char[] passwd | |
| prf | back to summary |
|---|---|
| private final transient Mac prf | |
| salt | back to summary |
|---|---|
| private final byte[] salt | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| PBKDF2KeyImpl | back to summary |
|---|---|
| pack-priv PBKDF2KeyImpl(PBEKeySpec keySpec, String prfAlgo) throws InvalidKeySpecException Creates a PBE key from a given PBE key specification.
| |
| clear | back to summary |
|---|---|
| public void clear() | |
| deriveKey | back to summary |
|---|---|
| private static byte[] deriveKey(final Mac prf, final byte[] password, byte[] salt, int iterCount, int keyLengthInBit) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements java. Doc from java. Returns the standard algorithm name for this key. For example, "RSA" would indicate that this key is an RSA key. See the Key Algorithms section in the Java Security Standard Algorithm Names Specification for information about standard key algorithm names. | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements java. Doc from java. Returns the key in its primary encoding format, or | |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Doc from java. Returns the name of the primary encoding format of this key,
or | |
| getIterationCount | back to summary |
|---|---|
| public int getIterationCount() Implements javax. Doc from javax. Returns the iteration count or 0 if not specified. | |
| getPassword | back to summary |
|---|---|
| public char[] getPassword() Implements javax. Doc from javax. 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. | |
| getSalt | back to summary |
|---|---|
| public byte[] getSalt() Implements javax. Doc from javax. 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. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Calculates a hash code value for the object. Objects that are equal will also have the same hashcode.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Restores the state of this object from the stream. Deserialization of this class is not supported.
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() throws ObjectStreamException Replace the PBE key to be serialized.
| |