API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.security.auth.kerberos. KerberosKey View Source
Author(s)
Mayank Upadhyay
Since
1.4
Version
1.20, 04/21/06
Serial
Hierarchy
 Object
      KerberosKey
Implements
 SecretKey
 Destroyable
Subclasses
Description
public class KerberosKey
  This class encapsulates a long term secret key for a Kerberos principal.
See also:   
Constructors
public KerberosKey (KerberosPrincipal principal, byte[] keyBytes, int keyType, int versionNum)
  Constructs a KerberosKey from the given bytes when the key type and key version number are known.
public KerberosKey (KerberosPrincipal principal, char[] password, String algorithm)
  Constructs a KerberosKey from a principal's password.
Methods
Hide/Show inherited methods
public void destroy () throws DestroyFailedException [Specified in Destroyable]
  Destroys this key.
public boolean equals (Object other)
  Compares the specified Object with this KerberosKey for equality.
publicfinal String getAlgorithm ()
  Returns the standard algorithm name for this key.
publicfinal byte getEncoded ()
  Returns the key material of this secret key.
publicfinal String getFormat ()
  Returns the name of the encoding format for this secret key.
publicfinal int getKeyType ()
  Returns the key type for this long-term key.
publicfinal KerberosPrincipal getPrincipal ()
  Returns the principal that this key belongs to.
publicfinal int getVersionNumber ()
  Returns the key version number.
public int hashCode ()
  Returns a hashcode for this KerberosKey.
public boolean isDestroyed () [Specified in Destroyable]
Determines if this key has been destroyed.
public String toString ()
Fields
Hide/Show inherited fields
publicfinalstatic long serialVersionUID = "-4795878709595146952" [Inherited From SecretKey]
publicfinalstatic long serialVersionUID = "6603384152749567654" [Inherited From SecretKey]
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar