@Entity public class ProxyGrantingTicketImpl extends TicketGrantingTicketImpl implements ProxyGrantingTicket
NOTE: A PGT shares the same implementation as a TicketGrantingTicket
.
The intention of this implementation at this point is make explicit and visible
the use and declaration of a PGT per the CAS protocol.
PROXY_GRANTING_TICKET_IOU_PREFIX, PROXY_GRANTING_TICKET_PREFIX
PREFIX
Constructor and Description |
---|
ProxyGrantingTicketImpl(java.lang.String id,
Authentication authentication,
ExpirationPolicy policy)
Instantiates a new proxy granting ticket impl.
|
ProxyGrantingTicketImpl(java.lang.String id,
Service proxiedBy,
TicketGrantingTicket parentTicketGrantingTicket,
Authentication authentication,
ExpirationPolicy expirationPolicy)
Instantiates a new proxy granting ticket impl.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPrefix()
Gets prefix.
|
ProxyTicket |
grantProxyTicket(java.lang.String id,
Service service,
ExpirationPolicy expirationPolicy,
boolean onlyTrackMostRecentSession)
Grant a proxy ticket for a specific service.
|
getChainedAuthentications, getRoot, grantServiceTicket, isRoot, removeAllServices, trackServiceSession
compareTo, getAuthentication, getTicketGrantingTicket, isExpired, isExpiredInternal, markTicketExpired, toString, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthentication, getChainedAuthentications, getDescendantTickets, getProxiedBy, getProxyGrantingTickets, getRoot, getServices, grantServiceTicket, isRoot, removeAllServices
getCountOfUses, getCreationTime, getExpirationPolicy, getId, getTicketGrantingTicket, isExpired, markTicketExpired
getCountOfUses, getCreationTime, getLastTimeUsed, getPreviousTimeUsed
public ProxyGrantingTicketImpl(java.lang.String id, Authentication authentication, ExpirationPolicy policy)
id
- the idauthentication
- the authenticationpolicy
- the policypublic ProxyGrantingTicketImpl(java.lang.String id, Service proxiedBy, TicketGrantingTicket parentTicketGrantingTicket, Authentication authentication, ExpirationPolicy expirationPolicy)
id
- the idproxiedBy
- the proxied byparentTicketGrantingTicket
- the ticket granting ticketauthentication
- the authenticationexpirationPolicy
- the policypublic ProxyTicket grantProxyTicket(java.lang.String id, Service service, ExpirationPolicy expirationPolicy, boolean onlyTrackMostRecentSession)
ProxyGrantingTicket
grantProxyTicket
in interface ProxyGrantingTicket
id
- The unique identifier for this ticket.service
- The service for which we are granting a ticketexpirationPolicy
- the expiration policy.onlyTrackMostRecentSession
- track the most recent session by keeping the latest service ticketpublic java.lang.String getPrefix()
Ticket
getPrefix
in interface Ticket
getPrefix
in class TicketGrantingTicketImpl