|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.security.auth.kerberos.KerberosTicket
public class KerberosTicket
This class represents a Kerberos ticket. See the Kerberos authentication RFC for more information: RFC 1510.
Constructor Summary | |
---|---|
KerberosTicket(byte[] asn1Encoding,
KerberosPrincipal client,
KerberosPrincipal server,
byte[] key,
int type,
boolean[] flags,
Date authTime,
Date startTime,
Date endTime,
Date renewTill,
InetAddress[] clientAddresses)
Create a new ticket given all the facts about it. |
Method Summary | |
---|---|
void |
destroy()
Destroy this ticket. |
Date |
getAuthTime()
Return the authentication time for this ticket. |
KerberosPrincipal |
getClient()
Return the client principal for this ticket. |
InetAddress[] |
getClientAddresses()
Return the allowable client addresses for this ticket. |
byte[] |
getEncoded()
Return the encoded form of this ticket. |
Date |
getEndTime()
Return the end time for this ticket. |
boolean[] |
getFlags()
Return the flags for this ticket as a boolean array. |
Date |
getRenewTill()
Return the renewal time for this ticket. |
KerberosPrincipal |
getServer()
Return the server principal for this ticket. |
SecretKey |
getSessionKey()
Return the secret key associated with this ticket. |
Date |
getStartTime()
Return the start time for this ticket. |
boolean |
isCurrent()
Return true if the ticket is currently valid. |
boolean |
isDestroyed()
Return true if this ticket has been destroyed. |
boolean |
isForwardable()
Return true if this ticket is forwardable. |
boolean |
isForwarded()
Return true if this ticket has been forwarded. |
boolean |
isInitial()
Return true if this ticket was granted by an application server, and not via a ticket-granting ticket. |
boolean |
isPostdated()
Return true if this ticket was post-dated. |
boolean |
isProxiable()
Return true if this ticket is proxiable. |
boolean |
isProxy()
Return true if this ticket is a proxy ticket. |
boolean |
isRenewable()
Return true if this ticket is renewable. |
void |
refresh()
If the ticket is renewable, and the renewal time has not yet elapsed, attempt to renew the ticket. |
String |
toString()
Convert this Object to a human-readable String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KerberosTicket(byte[] asn1Encoding, KerberosPrincipal client, KerberosPrincipal server, byte[] key, int type, boolean[] flags, Date authTime, Date startTime, Date endTime, Date renewTill, InetAddress[] clientAddresses)
asn1Encoding
- the contents of the ticket, as ASN1client
- the client principalserver
- the server principalkey
- the contents of the session keytype
- the type of the keyflags
- an array of flags, as specified by the RFCauthTime
- when the client was authenticatedstartTime
- starting time at which the ticket is validendTime
- ending time, after which the ticket is invalidrenewTill
- for a rewewable ticket, the time before which it must
be renewedclientAddresses
- a possibly-null array of addresses where this
ticket may be usedMethod Detail |
---|
public void destroy() throws DestroyFailedException
destroy
in interface Destroyable
DestroyFailedException
- If this object could not be
destroyed.public boolean isDestroyed()
isDestroyed
in interface Destroyable
public boolean isCurrent()
isCurrent
in interface Refreshable
public void refresh() throws RefreshFailedException, NotImplementedException
refresh
in interface Refreshable
RefreshFailedException
- if the renewal fails for any reason
NotImplementedException
public final KerberosPrincipal getClient()
public final KerberosPrincipal getServer()
public final boolean isForwardable()
public final boolean isForwarded()
public final boolean isProxiable()
public final boolean isProxy()
public final boolean isPostdated()
public final boolean isRenewable()
public final boolean isInitial()
public final boolean[] getFlags()
public final Date getAuthTime()
public final Date getStartTime()
public final Date getEndTime()
public final Date getRenewTill()
public final InetAddress[] getClientAddresses()
public final byte[] getEncoded()
public final SecretKey getSessionKey()
public String toString()
Object
System.out.println()
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a RuntimeException
.
This method will be called when performing string
concatenation with this object. If the result is
null
, string concatenation will instead
use "null"
.
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode())
.
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |