An EncryptionKey is defined in Section 4.2.9 of the Kerberos Protocol Specification (RFC 4120) as:
EncryptionKey ::= SEQUENCE {
keytype [0] Int32 -- actually encryption type --,
keyvalue [1] OCTET STRING
}
The key material of an EncryptionKey is defined as the value
of the keyValue above.
| Modifier and Type | Field and Description |
|---|---|
| private transient boolean | |
| private final KeyImpl | key
|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | EncryptionKey(byte[]
the key material for the key keyBytes, int the key type for the key as defined by the
Kerberos protocol specification. keyType)Constructs an |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
Overrides default javax. Destroys this key by clearing out the key material of this key. |
| public boolean | Returns: true if the specified object is equal to thisEncryptionKey, false otherwise.the object to compare to other)Overrides java. Compares the specified object with this key for equality. |
| public String | Returns: the name of the algorithm associated with this key.Implements java. Returns the standard algorithm name for this key. |
| public byte[] | Returns: a newly allocated byte array that contains the key materialImplements java. Returns the key material of this key. |
| public String | Returns: the String "RAW"Implements java. Returns the name of the encoding format for this key. |
| public int | |
| public int | Returns: a hash code for thisEncryptionKeyOverrides java. Returns a hash code for this |
| public boolean | isDestroyed()
Overrides default javax. Determine if this |
| public String | Returns: an informative textual representation of thisEncryptionKey.Overrides java. Returns an informative textual representation of this |
| destroyed | back to summary |
|---|---|
| private transient boolean destroyed | |
| key | back to summary |
|---|---|
| private final KeyImpl key
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| EncryptionKey | back to summary |
|---|---|
| public EncryptionKey(byte[] keyBytes, int keyType) Constructs an The contents of the byte array are copied; subsequent modification of the byte array does not affect the newly created key.
| |
| destroy | back to summary |
|---|---|
| public void destroy() throws DestroyFailedException Overrides default javax. Destroys this key by clearing out the key material of this key.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Compares the specified object with this key for equality.
Returns true if the given object is also an
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements java. Returns the standard algorithm name for this key. The algorithm names are the encryption type string defined on the IANA Kerberos Encryption Type Numbers page. This method can return the following value not defined on the IANA page:
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements java. Returns the key material of this key.
| |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Returns the name of the encoding format for this key.
| |
| getKeyType | back to summary |
|---|---|
| public int getKeyType() Returns the key type for this key.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code for this
| |
| isDestroyed | back to summary |
|---|---|
| public boolean isDestroyed() Overrides default javax. Doc from javax. Determine if this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns an informative textual representation of this | |