|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.security.auth.kerberos.KerberosKey
public class KerberosKey
This class represents a Kerberos key. See the Kerberos authentication RFC for more information: RFC 1510.
| 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()
toString creates a printable string that represents this object for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KerberosKey(KerberosPrincipal principal,
byte[] key,
int type,
int version)
principal - the principalkey - the key's datatype - the key's typeversion - the key's version number
public KerberosKey(KerberosPrincipal principal,
char[] passwd,
String algo)
throws gnu.classpath.NotImplementedException
principal - the principalpasswd - the password to usealgo - the algorithm; if null the "DES" algorithm is used
gnu.classpath.NotImplementedException| Method Detail |
|---|
public final String getAlgorithm()
getAlgorithm in interface Keypublic final String getFormat()
getFormat in interface Keypublic final KerberosPrincipal getPrincipal()
public final int getKeyType()
public final int getVersionNumber()
public final byte[] getEncoded()
getEncoded in interface Key
public void destroy()
throws DestroyFailedException
destroy in interface DestroyableDestroyFailedException - If this object could not be
destroyed.public boolean isDestroyed()
isDestroyed in interface Destroyablepublic String toString()
ObjectThe default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||