javax.security.auth.kerberos
public class KerberosKey extends Object implements Serializable, SecretKey, Destroyable
Since: 1.4
Constructor Summary | |
---|---|
KerberosKey(KerberosPrincipal principal, byte[] key, int type, int version)
Construct a new key with the indicated principal and key. | |
KerberosKey(KerberosPrincipal principal, char[] passwd, String algo)
Construct a new key with the indicated principal and a password. |
Method Summary | |
---|---|
void | destroy()
Destroy this key. |
String | getAlgorithm()
Return the name of the algorithm used to create this key. |
byte[] | getEncoded()
Return the encoded form of this key. |
String | getFormat()
Return the format of this key. |
int | getKeyType()
Return the type of this key. |
KerberosPrincipal | getPrincipal()
Return the principal associated with this key. |
int | getVersionNumber()
Return the version number of this key. |
boolean | isDestroyed()
Return true if this key has been destroyed. |
String | toString() |
Parameters: principal the principal key the key's data type the key's type version the key's version number
Parameters: principal the principal passwd the password to use algo the algorithm; if null the "DES" algorithm is used