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

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.
 public KeyImpl(byte[] keyBytes,
    int keyType) 
 public KeyImpl(KerberosPrincipal principal,
    char[] password,
    String algorithm) 
    Constructs a KeyImpl from a password.
    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()