| java.lang.Object | |
| ↳ | sun.security.mule.krb5.EncryptionKey |
This class encapsulates the concept of an EncryptionKey. An encryption key is defined in RFC 4120 as: EncryptionKey ::= SEQUENCE { keytype [0] Int32 -- actually encryption type --, keyvalue [1] OCTET STRING } keytype This field specifies the encryption type of the encryption key that follows in the keyvalue field. Although its name is "keytype", it actually specifies an encryption type. Previously, multiple cryptosystems that performed encryption differently but were capable of using keys with the same characteristics were permitted to share an assigned number to designate the type of key; this usage is now deprecated. keyvalue This field contains the key itself, encoded as an octet string.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| NULL_KEY | |||||||||||
| keyType | |||||||||||
| keyValue | |||||||||||
| kvno | |||||||||||
| logger | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an EncryptionKey by using the specified key type and key
value.
| |||||||||||
Constructs an instance of EncryptionKey type.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Obtains all versions of the secret key of the principal from a
keytab.
| |||||||||||
Generate a list of keys using the given principal and password.
| |||||||||||
Generates a list of keys using the given principal, password,
and the pre-authentication values.
| |||||||||||
Returns the ASN.1 encoding of this EncryptionKey.
| |||||||||||
Returns the raw key bytes, not in any ASN.1 encoding.
| |||||||||||
Parse (unmarshal) an Encryption key from a DER input stream.
| |||||||||||
Writes key value in FCC format to a
CCacheOutputStream. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
| keyValue | |
|---|---|
| keyType | |
| kvno |
Constructs an EncryptionKey by using the specified key type and key value. It is used to recover the key when retrieving data from credential cache file.
| keyType | |
|---|---|
| keyValue |
Constructs an instance of EncryptionKey type.
| encoding | A single DER-encoded value. |
|---|
| Asn1Exception | if an error occurs while decoding an ASN1 encoded data. |
|---|---|
| IOException | if an I/O error occurs while reading encoded data. |
Obtains all versions of the secret key of the principal from a keytab.
| princ | |
|---|---|
| keytab | The path to the keytab file. A value of null will be accepted to indicate that the default path should be searched. |
| kerberosConfig |
| IOException | |
|---|---|
| KrbException |
Generate a list of keys using the given principal and password. Construct a key for each configured etype. Caller is responsible for clearing password.
| password | |
|---|---|
| salt | |
| kerberosConfig |
| KrbException |
|---|
Generates a list of keys using the given principal, password, and the pre-authentication values.
| password | |
|---|---|
| salt | |
| pa_exists | |
| pa_etype | |
| pa_s2kparams | |
| kerberosConfig |
| KrbException |
|---|
Returns the ASN.1 encoding of this EncryptionKey.
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
| Asn1Exception | if an error occurs while decoding an ASN1 encoded data. |
|---|---|
| IOException | if an I/O error occurs while reading encoded data. |
Returns the raw key bytes, not in any ASN.1 encoding.
Parse (unmarshal) an Encryption key from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.
| data | The Der input stream value, which contains one or more marshaled value. |
|---|---|
| explicitTag | Tag number. |
| optional | Indicate if this data field is optional |
| Asn1Exception | if an error occurs while decoding an ASN1 encoded data. |
|---|---|
| IOException | if an I/O error occurs while reading encoded data. |
Writes key value in FCC format to a CCacheOutputStream.
| cos | A CCacheOutputStream to be written to. |
|---|
| IOException | if an I/O exception occurs. |
|---|