public final class RemoteCentralAuthenticationService extends Object implements CentralAuthenticationService
The following properties are required:
| Constructor and Description |
|---|
RemoteCentralAuthenticationService() |
| 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.
|
void |
setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)
Set the CentralAuthenticationService.
|
void |
setValidator(javax.validation.Validator validator)
Set the list of validators.
|
Assertion |
validateServiceTicket(String serviceTicketId,
Service service)
Validate a ServiceTicket for a particular Service.
|
public String createTicketGrantingTicket(Credentials credentials) throws TicketException
CentralAuthenticationServicecreateTicketGrantingTicket in interface CentralAuthenticationServicecredentials - The credentials to create the ticket forIllegalArgumentException - if the Credentials are null or if given
invalid credentials.TicketException - if ticket cannot be createdpublic String grantServiceTicket(String ticketGrantingTicketId, Service service) throws TicketException
CentralAuthenticationServicegrantServiceTicket in interface CentralAuthenticationServiceticketGrantingTicketId - Proof of prior authentication.service - The target service of the ServiceTicket.TicketException - if the ticket could not be created.public String grantServiceTicket(String ticketGrantingTicketId, Service service, Credentials credentials) throws TicketException
CentralAuthenticationServicegrantServiceTicket in interface CentralAuthenticationServiceticketGrantingTicketId - Proof of prior authentication.service - The target service of the ServiceTicket.credentials - the Credentials to present to receive the
ServiceTicketIllegalArgumentException - if given invalid credentialsTicketException - if the ticket could not be created.public Assertion validateServiceTicket(String serviceTicketId, Service service) throws TicketException
CentralAuthenticationServicevalidateServiceTicket in interface CentralAuthenticationServiceserviceTicketId - Proof of prior authentication.service - Service wishing to validate a prior authentication.TicketException - if there was an error validating the ticket.public void destroyTicketGrantingTicket(String ticketGrantingTicketId)
CentralAuthenticationServicedestroyTicketGrantingTicket in interface CentralAuthenticationServiceticketGrantingTicketId - the id of the ticket we want to destroypublic String delegateTicketGrantingTicket(String serviceTicketId, Credentials credentials) throws TicketException
CentralAuthenticationServicedelegateTicketGrantingTicket in interface CentralAuthenticationServiceserviceTicketId - The service ticket that will delegate to a
TicketGrantingTicketcredentials - The credentials of the service that wishes to have a
TicketGrantingTicket delegated to it.IllegalArgumentException - if the credentials are invalid.TicketException - if there was an error creating the ticketpublic void setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)
centralAuthenticationService - The CentralAuthenticationService to
set.public void setValidator(javax.validation.Validator validator)
validator - The array of validators to use.Copyright © 2004-2012 Jasig. All Rights Reserved.