|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.remoting.server.RemoteCentralAuthenticationService
public final class RemoteCentralAuthenticationService
Wrapper implementation around a CentralAuthenticationService that does completes the marshalling of parameters from the web-service layer to the service layer. Typically the only thing that is done is to validate the parameters (as you would in the web tier) and then delegate to the service layer.
The following properties are required:
| Constructor Summary | |
|---|---|
RemoteCentralAuthenticationService()
|
|
| 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. |
void |
setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)
Set the CentralAuthenticationService. |
void |
setValidator(javax.validation.Validator validator)
Set the list of validators. |
Assertion |
validateServiceTicket(java.lang.String serviceTicketId,
Service service)
Validate a ServiceTicket for a particular Service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteCentralAuthenticationService()
| Method Detail |
|---|
public java.lang.String createTicketGrantingTicket(Credentials credentials)
throws TicketException
CentralAuthenticationService
createTicketGrantingTicket in interface CentralAuthenticationServicecredentials - The credentials to create the ticket for
java.lang.IllegalArgumentException - if the Credentials are null or if given
invalid credentials.
TicketException - if ticket cannot be created
public java.lang.String grantServiceTicket(java.lang.String ticketGrantingTicketId,
Service service)
throws TicketException
CentralAuthenticationService
grantServiceTicket in interface CentralAuthenticationServiceticketGrantingTicketId - Proof of prior authentication.service - The target service of the ServiceTicket.
TicketException - if the ticket could not be created.
public java.lang.String grantServiceTicket(java.lang.String ticketGrantingTicketId,
Service service,
Credentials credentials)
throws TicketException
CentralAuthenticationService
grantServiceTicket in interface CentralAuthenticationServiceticketGrantingTicketId - Proof of prior authentication.service - The target service of the ServiceTicket.credentials - the Credentials to present to receive the
ServiceTicket
java.lang.IllegalArgumentException - if given invalid credentials
TicketException - if the ticket could not be created.
public Assertion validateServiceTicket(java.lang.String serviceTicketId,
Service service)
throws TicketException
CentralAuthenticationService
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 void destroyTicketGrantingTicket(java.lang.String ticketGrantingTicketId)
CentralAuthenticationService
destroyTicketGrantingTicket in interface CentralAuthenticationServiceticketGrantingTicketId - the id of the ticket we want to destroy
public java.lang.String delegateTicketGrantingTicket(java.lang.String serviceTicketId,
Credentials credentials)
throws TicketException
CentralAuthenticationService
delegateTicketGrantingTicket 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.
java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||