public interface TicketService
| Modifier and Type | Method and Description |
|---|---|
ProxyGrantingTicket |
createProxyGrantingTicket(String id,
Instant expiry,
ProxyTicket proxyTicket)
Creates a chained proxy-granting ticket from a proxy ticket.
|
ProxyGrantingTicket |
createProxyGrantingTicket(String id,
Instant expiry,
ServiceTicket serviceTicket)
Creates a top-level proxy-granting ticket from a service ticket.
|
ProxyTicket |
createProxyTicket(String id,
Instant expiry,
ProxyGrantingTicket pgt,
String service)
Creates and stores a proxy ticket for the given service.
|
ServiceTicket |
createServiceTicket(String id,
Instant expiry,
String sessionId,
String service,
boolean renew)
Creates and stores a ticket for the given service.
|
ProxyGrantingTicket |
fetchProxyGrantingTicket(String id)
Retrieves a proxy-granting ticket by its ID.
|
ProxyGrantingTicket |
removeProxyGrantingTicket(String id)
Removes the proxy-granting ticket with the given identifier.
|
ProxyTicket |
removeProxyTicket(String id)
Removes the proxy ticket with the given identifier.
|
ServiceTicket |
removeServiceTicket(String id)
Removes the service ticket with the given identifier.
|
@Nonnull ServiceTicket createServiceTicket(@Nonnull String id, @Nonnull Instant expiry, @Nonnull String sessionId, @Nonnull String service, boolean renew)
id - ID of ticket to create.expiry - Expiration date of service ticket.sessionId - ID of IdP session in which ticket was created.service - Service for which ticket is granted.renew - True to indicate the ticket was generated in response to a forced authentication, false otherwise.@Nullable ServiceTicket removeServiceTicket(@Nonnull String id)
id - Identifier of ticket to remove.@Nonnull ProxyGrantingTicket createProxyGrantingTicket(@Nonnull String id, @Nonnull Instant expiry, @Nonnull ServiceTicket serviceTicket)
id - ID of proxy-granting ticket to create.expiry - Expiration date of proxy-granting ticket.serviceTicket - Successfully-validated service ticket.@Nonnull ProxyGrantingTicket createProxyGrantingTicket(@Nonnull String id, @Nonnull Instant expiry, @Nonnull ProxyTicket proxyTicket)
ProxyTicket.getPgtId()
defines the parent of the created ticket, which in turn determines its location in the proxy chain.id - ID of proxy-granting ticket to create.expiry - Expiration date of proxy-granting ticket.proxyTicket - Successfully-validated proxy ticket.@Nullable ProxyGrantingTicket fetchProxyGrantingTicket(@Nonnull String id)
id - Proxy-granting ticket ID.@Nullable ProxyGrantingTicket removeProxyGrantingTicket(@Nonnull String id)
id - Identifier of ticket to remove.@Nonnull ProxyTicket createProxyTicket(@Nonnull String id, @Nonnull Instant expiry, @Nonnull ProxyGrantingTicket pgt, @Nonnull String service)
id - ID of proxy-granting ticket to create.expiry - Expiration date of proxy ticket.pgt - Proxy-granting ticket used to create proxy ticket.service - Service for which ticket is granted.@Nullable ProxyTicket removeProxyTicket(@Nonnull String id)
id - Identifier of ticket to remove.Copyright © 1999–2015. All rights reserved.