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.
| Modifier and Type | Method and Description |
|---|---|
String |
createTicketGrantingTicket(Credential... credentials)
Create a
TicketGrantingTicket by authenticating credentials. |
String |
delegateTicketGrantingTicket(String serviceTicketId,
Credential... credentials)
Delegate a TicketGrantingTicket to a Service for proxying authentication
to other Services.
|
List<LogoutRequest> |
destroyTicketGrantingTicket(String ticketGrantingTicketId)
Destroy a TicketGrantingTicket and perform back channel logout.
|
String |
grantServiceTicket(String ticketGrantingTicketId,
Service service)
Grants a
ServiceTicket that may be used to access the given service. |
String |
grantServiceTicket(String ticketGrantingTicketId,
Service service,
Credential... credentials)
Grant a
ServiceTicket that may be used to access the given service
by authenticating the given credentials. |
Assertion |
validateServiceTicket(String serviceTicketId,
Service service)
Validate a ServiceTicket for a particular Service.
|
String createTicketGrantingTicket(Credential... credentials) throws AuthenticationException, TicketException
TicketGrantingTicket by authenticating credentials.
The details of the security policy around credential authentication and the definition
of authentication success are dependent on the implementation, but it SHOULD be safe to assume
that at least one credential MUST be authenticated for ticket creation to succeed.credentials - One or more credentials that may be authenticated in order to create the ticket.AuthenticationException - on errors authenticating the credentialsTicketException - if ticket cannot be createdString grantServiceTicket(String ticketGrantingTicketId, Service service) throws TicketException
ServiceTicket that may be used to access the given service.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, Credential... credentials) throws AuthenticationException, TicketException
ServiceTicket that may be used to access the given service
by authenticating the given credentials.
The details of the security policy around credential authentication and the definition
of authentication success are dependent on the implementation, but it SHOULD be safe to assume
that at least one credential MUST be authenticated for ticket creation to succeed.
The principal that is resolved from the authenticated credentials MUST be the same as that to which the given ticket-granting ticket was issued.
ticketGrantingTicketId - Proof of prior authentication.service - The target service of the ServiceTicket.credentials - One or more credentials to authenticate prior to granting the service ticket.AuthenticationException - on errors authenticating the credentialsTicketException - 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.List<LogoutRequest> destroyTicketGrantingTicket(String ticketGrantingTicketId)
IllegalArgumentException if the TicketGrantingTicket ID is null.ticketGrantingTicketId - the id of the ticket we want to destroyString delegateTicketGrantingTicket(String serviceTicketId, Credential... credentials) throws AuthenticationException, TicketException
serviceTicketId - The service ticket identifier that will delegate to a
TicketGrantingTicket.credentials - One or more credentials to authenticate prior to delegating the ticket.ServiceTicket
that proxy authentication.AuthenticationException - on errors authenticating the credentialsTicketException - if there was an error creating the ticketCopyright © 2004-2015 Apereo. All Rights Reserved.