| Modifier and Type | Field and Description |
|---|---|
| private transient volatile boolean | |
| private transient byte[] | |
| private transient int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | KeyImpl(byte[]
the raw bytes for the secret key keyBytes, int the key type for the secret key as defined by the
Kerberos protocol specification. keyType)Constructs a KeyImpl from the given bytes. |
| public | KeyImpl(KerberosPrincipal
the principal from which to derive the salt principal, char[] the password that should be used to compute the
key. password, String the name for the algorithm that this key will be
used for. This parameter may be null in which case "DES" will be
assumed. algorithm)Constructs a KeyImpl from a password. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | equals(Object other)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public final String | getAlgorithm()
Implements java. Returns the standard algorithm name for this key. |
| private String | |
| public final byte[] | getEncoded()
Implements java. Returns the key in its primary encoding format, or |
| public final String | getFormat()
Implements java. Returns the name of the primary encoding format of this key,
or |
| public final int | |
| public int | |
| public boolean | isDestroyed()
Overrides default javax. Determine if this |
| private void | readObject(ObjectInputStream
the ois)ObjectInputStream from which data is readRestores the state of this object from the stream. |
| public String | |
| private void | writeObject(ObjectOutputStream
the oos)ObjectOutputStream to which data is writtenWrites the state of this object to the stream. |
| destroyed | back to summary |
|---|---|
| private transient volatile boolean destroyed | |
| keyBytes | back to summary |
|---|---|
| private transient byte[] keyBytes | |
| keyType | back to summary |
|---|---|
| private transient int keyType | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| KeyImpl | back to summary |
|---|---|
| public KeyImpl(byte[] keyBytes, int keyType) Constructs a KeyImpl from the given bytes.
| |
| KeyImpl | back to summary |
|---|---|
| public KeyImpl(KerberosPrincipal principal, char[] password, String algorithm) Constructs a KeyImpl from a password.
| |
| destroy | back to summary |
|---|---|
| public void destroy() throws DestroyFailedException Overrides default javax. Doc from javax. Destroy this Sensitive information associated with this
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) 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 final 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. | |
| getAlgorithmName | back to summary |
|---|---|
| private String getAlgorithmName(int eType) | |
| getEncoded | back to summary |
|---|---|
| public final byte[] getEncoded() Implements java. Doc from java. Returns the key in its primary encoding format, or | |
| getFormat | back to summary |
|---|---|
| public final String getFormat() Implements java. Doc from java. Returns the name of the primary encoding format of this key,
or | |
| getKeyType | back to summary |
|---|---|
| public final int getKeyType() Returns the keyType for this key as defined in the Kerberos Spec. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDestroyed | back to summary |
|---|---|
| public boolean isDestroyed() Overrides default javax. Doc from javax. Determine if this | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException Restores the state of this object from the stream.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException Writes the state of this object to the stream.
| |