|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CentralAuthenticationService
CAS viewed as a set of services to generate and validate Tickets.
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.
| Method Summary | |
|---|---|
java.lang.String |
createTicketGrantingTicket(Credentials credentials)
Create a TicketGrantingTicket based on opaque credentials supplied by the caller. |
java.lang.String |
delegateTicketGrantingTicket(java.lang.String serviceTicketId,
Credentials credentials)
Delegate a TicketGrantingTicket to a Service for proxying authentication to other Services. |
void |
destroyTicketGrantingTicket(java.lang.String ticketGrantingTicketId)
Destroy a TicketGrantingTicket. |
java.lang.String |
grantServiceTicket(java.lang.String ticketGrantingTicketId,
Service service)
Grant a ServiceTicket for a Service. |
java.lang.String |
grantServiceTicket(java.lang.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(java.lang.String serviceTicketId,
Service service)
Validate a ServiceTicket for a particular Service. |
| Method Detail |
|---|
java.lang.String createTicketGrantingTicket(Credentials credentials)
throws TicketException
credentials - The credentials to create the ticket for
TicketException - if ticket cannot be created
java.lang.String grantServiceTicket(java.lang.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.
java.lang.String grantServiceTicket(java.lang.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
ServiceTicket
TicketException - if the ticket could not be created.
Assertion validateServiceTicket(java.lang.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(java.lang.String ticketGrantingTicketId)
ticketGrantingTicketId - the id of the ticket we want to destroy
java.lang.String delegateTicketGrantingTicket(java.lang.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 ticket
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||