public interface CentralAuthenticationService
This is the interface between a Web HTML, Web Services, RMI, or any other request processing layer and the CAS Service viewed as a mechanism to generate, store, validate, and retrieve Tickets containing Authentication information. The features of the request processing layer (the HttpXXX Servlet objects) are not visible here or in any modules behind this layer. In theory, a standalone application could call these methods directly as a private authentication service.
This is a published and supported CAS Server 3 API.
| Modifier and Type | Method and Description |
|---|---|
String |
createTicketGrantingTicket(Credentials credentials)
Create a TicketGrantingTicket based on opaque credentials supplied by the
caller.
|
String |
delegateTicketGrantingTicket(String serviceTicketId,
Credentials credentials)
Delegate a TicketGrantingTicket to a Service for proxying authentication
to other Services.
|
void |
destroyTicketGrantingTicket(String ticketGrantingTicketId)
Destroy a TicketGrantingTicket.
|
String |
grantServiceTicket(String ticketGrantingTicketId,
Service service)
Grant a ServiceTicket for a Service.
|
String |
grantServiceTicket(String ticketGrantingTicketId,
Service service,
Credentials credentials)
Grant a ServiceTicket for a Service *if* the principal resolved from the
credentials matches the principal associated with the
TicketGrantingTicket.
|
Assertion |
validateServiceTicket(String serviceTicketId,
Service service)
Validate a ServiceTicket for a particular Service.
|
String createTicketGrantingTicket(Credentials credentials) throws TicketException
credentials - The credentials to create the ticket forTicketException - if ticket cannot be createdString grantServiceTicket(String ticketGrantingTicketId, Service service) throws TicketException
ticketGrantingTicketId - Proof of prior authentication.service - The target service of the ServiceTicket.TicketException - if the ticket could not be created.String grantServiceTicket(String ticketGrantingTicketId, Service service, Credentials credentials) throws TicketException
ticketGrantingTicketId - Proof of prior authentication.service - The target service of the ServiceTicket.credentials - the Credentials to present to receive the
ServiceTicketTicketException - if the ticket could not be created.Assertion validateServiceTicket(String serviceTicketId, Service service) throws TicketException
serviceTicketId - Proof of prior authentication.service - Service wishing to validate a prior authentication.TicketException - if there was an error validating the ticket.void destroyTicketGrantingTicket(String ticketGrantingTicketId)
ticketGrantingTicketId - the id of the ticket we want to destroyString delegateTicketGrantingTicket(String serviceTicketId, Credentials credentials) throws TicketException
serviceTicketId - The service ticket that will delegate to a
TicketGrantingTicketcredentials - The credentials of the service that wishes to have a
TicketGrantingTicket delegated to it.TicketException - if there was an error creating the ticketCopyright © 2004-2012 Jasig. All Rights Reserved.