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(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. |
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(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.createTicketGrantingTicket in interface CentralAuthenticationServicecredentials - One or more credentials that may be authenticated in order to create the ticket.IllegalArgumentException - if the Credentials are null or if given
invalid credentials.AuthenticationException - on errors authenticating the credentialsTicketException - if ticket cannot be createdpublic String grantServiceTicket(String ticketGrantingTicketId, Service service) throws TicketException
ServiceTicket that may be used to access the given service.grantServiceTicket 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, 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.
grantServiceTicket in interface CentralAuthenticationServiceticketGrantingTicketId - Proof of prior authentication.service - The target service of the ServiceTicket.credentials - One or more credentials to authenticate prior to granting the service ticket.IllegalArgumentException - if given invalid credentialsAuthenticationException - on errors authenticating the credentialsTicketException - if the ticket could not be created.public Assertion validateServiceTicket(String serviceTicketId, Service service) throws TicketException
validateServiceTicket 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 List<LogoutRequest> destroyTicketGrantingTicket(String ticketGrantingTicketId)
IllegalArgumentException if the TicketGrantingTicket ID is null.
Destroy a TicketGrantingTicket and perform back channel logout. This has the effect of invalidating any
Ticket that was derived from the TicketGrantingTicket being destroyed. May throw an
IllegalArgumentException if the TicketGrantingTicket ID is null.
destroyTicketGrantingTicket in interface CentralAuthenticationServiceticketGrantingTicketId - the id of the ticket we want to destroypublic String delegateTicketGrantingTicket(String serviceTicketId, Credential... credentials) throws AuthenticationException, TicketException
delegateTicketGrantingTicket in interface CentralAuthenticationServiceserviceTicketId - 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.IllegalArgumentException - if the credentials are invalid.AuthenticationException - on errors authenticating the credentialsTicketException - 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-2014 Jasig. All Rights Reserved.