Home » openjdk-7 » javax.security » auth » kerberos » [javadoc | source]
javax.security.auth.kerberos
class: KeyImpl [javadoc | source]
java.lang.Object
   javax.security.auth.kerberos.KeyImpl

All Implemented Interfaces:
    Destroyable, SecretKey, java$io$Serializable

This class encapsulates a Kerberos encryption key. It is not associated with a principal and may represent an ephemeral session key.
Constructor:
 public KeyImpl(byte[] keyBytes,
    int keyType) 
 public KeyImpl(KerberosPrincipal principal,
    char[] password,
    String algorithm) 
    Constructs a KeyImpl from a password.
    Parameters:
    principal - the principal from which to derive the salt
    password - the password that should be used to compute the key.
    algorithm - the name for the algorithm that this key wil be used for. This parameter may be null in which case "DES" will be assumed.
Method from javax.security.auth.kerberos.KeyImpl Summary:
destroy,   equals,   getAlgorithm,   getEncoded,   getFormat,   getKeyType,   hashCode,   isDestroyed,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.security.auth.kerberos.KeyImpl Detail:
 public  void destroy() throws DestroyFailedException 
 public boolean equals(Object other) 
 public final String getAlgorithm() 
 public final byte[] getEncoded() 
 public final String getFormat() 
 public final int getKeyType() 
    Returns the keyType for this key as defined in the Kerberos Spec.
 public int hashCode() 
 public boolean isDestroyed() 
 public String toString()