final class PBEKey extends Object implements SecretKey
| 限定符和类型 | 字段和说明 |
|---|---|
private byte[] |
key |
(专用程序包) static long |
serialVersionUID |
private String |
type |
| 构造器和说明 |
|---|
PBEKey(PBEKeySpec keySpec,
String keytype)
Creates a PBE key from a given PBE key specification.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Clears the internal copy of the key.
|
boolean |
equals(Object obj) |
protected void |
finalize()
Ensures that the password bytes of this key are
set to zero when there are no more references to it.
|
String |
getAlgorithm() |
byte[] |
getEncoded() |
String |
getFormat() |
int |
hashCode()
Calculates a hash code value for the object.
|
private void |
readObject(ObjectInputStream s)
readObject is called to restore the state of this key from
a stream.
|
private Object |
writeReplace()
Replace the PBE key to be serialized.
|
isDestroyedstatic final long serialVersionUID
private byte[] key
private String type
PBEKey(PBEKeySpec keySpec, String keytype) throws InvalidKeySpecException
key - the given PBE key specificationInvalidKeySpecExceptionpublic byte[] getEncoded()
getEncoded 在接口中 Keypublic String getAlgorithm()
getAlgorithm 在接口中 Keypublic int hashCode()
public void destroy()
destroy 在接口中 Destroyableprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private Object writeReplace() throws ObjectStreamException
ObjectStreamException - if a new object representing
this PBE key could not be createdCopyright © 2022. All rights reserved.