|
||||||||||
| 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.ServiceTicketImpl
@Entity public final class ServiceTicketImpl
Domain object representing a Service Ticket. A service ticket grants specific access to a particular service. It will only work for a particular service. Generally, it is a one time use Ticket, but the specific expiration policy can be anything.
| Field Summary |
|---|
| Fields inherited from interface org.jasig.cas.ticket.ServiceTicket |
|---|
PREFIX |
| Constructor Summary | |
|---|---|
|
ServiceTicketImpl()
|
protected |
ServiceTicketImpl(java.lang.String id,
TicketGrantingTicketImpl ticket,
Service service,
boolean fromNewLogin,
ExpirationPolicy policy)
Constructs a new ServiceTicket with a Unique Id, a TicketGrantingTicket, a Service, Expiration Policy and a flag to determine if the ticket creation was from a new Login or not. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
Authentication |
getAuthentication()
Authentication information from the ticket. |
Service |
getService()
Retrieve the service this ticket was given for. |
TicketGrantingTicket |
grantTicketGrantingTicket(java.lang.String id,
Authentication authentication,
ExpirationPolicy expirationPolicy)
Method to grant a TicketGrantingTicket from this service to the authentication. |
boolean |
isFromNewLogin()
Determine if this ticket was created at the same time as a TicketGrantingTicket. |
boolean |
isValidFor(Service serviceToValidate)
|
| Methods inherited from class org.jasig.cas.ticket.AbstractTicket |
|---|
getCountOfUses, getCreationTime, getGrantingTicket, getId, getLastTimeUsed, getPreviousTimeUsed, hashCode, isExpired, isExpiredInternal, 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 ServiceTicketImpl()
protected ServiceTicketImpl(java.lang.String id,
TicketGrantingTicketImpl ticket,
Service service,
boolean fromNewLogin,
ExpirationPolicy policy)
id - the unique identifier for the ticket.ticket - the TicketGrantingTicket parent.service - the service this ticket is for.fromNewLogin - is it from a new login.policy - the expiration policy for the Ticket.
java.lang.IllegalArgumentException - if the TicketGrantingTicket or the
Service are null.| Method Detail |
|---|
public boolean isFromNewLogin()
ServiceTicket
isFromNewLogin in interface ServiceTicketpublic Service getService()
ServiceTicket
getService in interface ServiceTicketpublic boolean isValidFor(Service serviceToValidate)
isValidFor in interface ServiceTicket
public TicketGrantingTicket grantTicketGrantingTicket(java.lang.String id,
Authentication authentication,
ExpirationPolicy expirationPolicy)
ServiceTicket
grantTicketGrantingTicket in interface ServiceTicketid - The unique identifier for this ticket.authentication - The Authentication we wish to grant a ticket for.
public Authentication getAuthentication()
TicketState
getAuthentication in interface TicketStatepublic 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 | |||||||||