|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.ticket.AbstractTicket
org.jasig.cas.ticket.TicketGrantingTicketImpl
@Entity public final class TicketGrantingTicketImpl
Concrete implementation of a TicketGrantingTicket. A TicketGrantingTicket is the global identifier of a principal into the system. It grants the Principal single-sign on access to any service that opts into single-sign on. Expiration of a TicketGrantingTicket is controlled by the ExpirationPolicy specified as object creation.
| Field Summary |
|---|
| Fields inherited from interface org.jasig.cas.ticket.TicketGrantingTicket |
|---|
PREFIX |
| Constructor Summary | |
|---|---|
TicketGrantingTicketImpl()
|
|
TicketGrantingTicketImpl(java.lang.String id,
Authentication authentication,
ExpirationPolicy policy)
Constructs a new TicketGrantingTicket without a parent TicketGrantingTicket. |
|
TicketGrantingTicketImpl(java.lang.String id,
TicketGrantingTicketImpl ticketGrantingTicket,
Authentication authentication,
ExpirationPolicy policy)
Constructs a new TicketGrantingTicket. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
void |
expire()
Explicitly expire a ticket. |
Authentication |
getAuthentication()
Method to retrieve the authentication. |
java.util.List<Authentication> |
getChainedAuthentications()
Method to retrieve the chained list of Authentications for this TicketGrantingTicket. |
ServiceTicket |
grantServiceTicket(java.lang.String id,
Service service,
ExpirationPolicy expirationPolicy,
boolean credentialsProvided)
Grant a ServiceTicket for a specific service. |
boolean |
isExpiredInternal()
|
boolean |
isRoot()
Convenience method to determine if the TicketGrantingTicket is the root of the heirachy of tickets. |
| Methods inherited from class org.jasig.cas.ticket.AbstractTicket |
|---|
getCountOfUses, getCreationTime, getGrantingTicket, getId, getLastTimeUsed, getPreviousTimeUsed, hashCode, isExpired, toString, updateState |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jasig.cas.ticket.Ticket |
|---|
getCountOfUses, getCreationTime, getGrantingTicket, getId, isExpired |
| Constructor Detail |
|---|
public TicketGrantingTicketImpl()
public TicketGrantingTicketImpl(java.lang.String id,
TicketGrantingTicketImpl ticketGrantingTicket,
Authentication authentication,
ExpirationPolicy policy)
id - the id of the TicketticketGrantingTicket - the parent ticketauthentication - the Authentication request for this ticketpolicy - the expiration policy for this ticket.
java.lang.IllegalArgumentException - if the Authentication object is null
public TicketGrantingTicketImpl(java.lang.String id,
Authentication authentication,
ExpirationPolicy policy)
id - the id of the Ticketauthentication - the Authentication request for this ticketpolicy - the expiration policy for this ticket.| Method Detail |
|---|
public Authentication getAuthentication()
TicketGrantingTicket
getAuthentication in interface TicketGrantingTicketgetAuthentication in interface TicketState
public ServiceTicket grantServiceTicket(java.lang.String id,
Service service,
ExpirationPolicy expirationPolicy,
boolean credentialsProvided)
TicketGrantingTicket
grantServiceTicket in interface TicketGrantingTicketid - The unique identifier for this ticket.service - The service for which we are granting a ticket
public boolean isRoot()
TicketGrantingTicket
isRoot in interface TicketGrantingTicketpublic void expire()
TicketGrantingTicket
expire in interface TicketGrantingTicketpublic boolean isExpiredInternal()
isExpiredInternal in class AbstractTicketpublic java.util.List<Authentication> getChainedAuthentications()
TicketGrantingTicket
getChainedAuthentications in interface TicketGrantingTicketpublic final boolean equals(java.lang.Object object)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||