| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | DESKey(byte[]
the buffer with the DES key bytes. key)Uses the first 8 bytes of the given key as the DES key. |
| pack-priv | DESKey(byte[]
the buffer with the DES key bytes. key, int the offset in offset)key, where the DES key bytes
start.Uses the first 8 bytes in |
| Modifier and Type | Method and Description |
|---|---|
| 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 | |
| private void | readObject(ObjectInputStream
the s)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 DES key to be serialized. |
| key | back to summary |
|---|---|
| private byte[] key | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| DESKey | back to summary |
|---|---|
| pack-priv DESKey(byte[] key) throws InvalidKeyException Uses the first 8 bytes of the given key as the DES key.
| |
| DESKey | back to summary |
|---|---|
| pack-priv DESKey(byte[] key, int offset) throws InvalidKeyException Uses the first 8 bytes in
| |
| 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 | |
| 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 s) throws IOException, ClassNotFoundException Restores the state of this object from the stream.
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() throws ObjectStreamException Replace the DES key to be serialized.
| |