public final class MultiFactorAwareCentralAuthenticationService extends Object implements org.jasig.cas.CentralAuthenticationService
CentralAuthenticationService that routes CAS requests to a delegate,
thereby allowing the ability to partially override behavior that is MFA specific.
The current implementation is specific on the operation of creating ticket creating tickets
based on the assumptions that the credentials received are of type MultiFactorCredentials
and that the authentication context is verified and readily available, based on which the TGT will
be added to the configured TicketRegistry.
This implementation here is merely responsible for creating the ticket granting ticket
and again, assumes that the authentication context has been established by all other
authentication managers in the flow. The authentication context is carried within the
MultiFactorCredentials instance.
Assumptions: the TicketRegistry wired into this CentralAuthenticationService instance is the same as that wired
into the wrapped delegate.
(That way when this implementation adds tickets directly to the registry in createTGT and delegateTGT
those tickets will be available to the delegate in its fulfilling such methods as grantServiceTicket.)| Constructor and Description |
|---|
MultiFactorAwareCentralAuthenticationService() |
| Modifier and Type | Method and Description |
|---|---|
String |
createTicketGrantingTicket(org.jasig.cas.authentication.principal.Credentials credentials) |
String |
delegateTicketGrantingTicket(String serviceTicketId,
org.jasig.cas.authentication.principal.Credentials credentials) |
void |
destroyTicketGrantingTicket(String ticketGrantingTicketId) |
String |
grantServiceTicket(String ticketGrantingTicketId,
org.jasig.cas.authentication.principal.Service service) |
String |
grantServiceTicket(String ticketGrantingTicketId,
org.jasig.cas.authentication.principal.Service service,
org.jasig.cas.authentication.principal.Credentials credentials) |
void |
setAuthenticationManager(org.jasig.cas.authentication.AuthenticationManager manager) |
void |
setAuthenticationMethodAttributeName(String authenticationMethodAttributeName)
Sets authentication method attribute name.
|
void |
setCentralAuthenticationServiceDelegate(org.jasig.cas.CentralAuthenticationService cas)
Inject a delegate CAS implementation to fulfill the non-TGT-creating CAS API methods.
|
void |
setPersistentIdGenerator(org.jasig.cas.authentication.principal.PersistentIdGenerator persistentIdGenerator) |
void |
setServicesManager(org.jasig.cas.services.ServicesManager servicesManager) |
void |
setServiceTicketRegistry(org.jasig.cas.ticket.registry.TicketRegistry serviceTicketRegistry) |
void |
setTicketGrantingTicketExpirationPolicy(org.jasig.cas.ticket.ExpirationPolicy ticketGrantingTicketExpirationPolicy)
Inject a ticket granting ticket expiration policy.
|
void |
setTicketGrantingTicketUniqueTicketIdGenerator(org.jasig.cas.util.UniqueTicketIdGenerator uniqueTicketIdGenerator)
Inject a TGT unique ID generator.
|
void |
setTicketRegistry(org.jasig.cas.ticket.registry.TicketRegistry ticketRegistry)
Method to set the TicketRegistry.
|
org.jasig.cas.validation.Assertion |
validateServiceTicket(String serviceTicketId,
org.jasig.cas.authentication.principal.Service service) |
public MultiFactorAwareCentralAuthenticationService()
public String createTicketGrantingTicket(org.jasig.cas.authentication.principal.Credentials credentials) throws org.jasig.cas.ticket.TicketException
createTicketGrantingTicket in interface org.jasig.cas.CentralAuthenticationServiceorg.jasig.cas.ticket.TicketExceptionpublic String grantServiceTicket(String ticketGrantingTicketId, org.jasig.cas.authentication.principal.Service service) throws org.jasig.cas.ticket.TicketException
grantServiceTicket in interface org.jasig.cas.CentralAuthenticationServiceorg.jasig.cas.ticket.TicketExceptionpublic String grantServiceTicket(String ticketGrantingTicketId, org.jasig.cas.authentication.principal.Service service, org.jasig.cas.authentication.principal.Credentials credentials) throws org.jasig.cas.ticket.TicketException
grantServiceTicket in interface org.jasig.cas.CentralAuthenticationServiceorg.jasig.cas.ticket.TicketExceptionpublic org.jasig.cas.validation.Assertion validateServiceTicket(String serviceTicketId, org.jasig.cas.authentication.principal.Service service) throws org.jasig.cas.ticket.TicketException
validateServiceTicket in interface org.jasig.cas.CentralAuthenticationServiceorg.jasig.cas.ticket.TicketExceptionpublic void destroyTicketGrantingTicket(String ticketGrantingTicketId)
destroyTicketGrantingTicket in interface org.jasig.cas.CentralAuthenticationServicepublic String delegateTicketGrantingTicket(String serviceTicketId, org.jasig.cas.authentication.principal.Credentials credentials) throws org.jasig.cas.ticket.TicketException
delegateTicketGrantingTicket in interface org.jasig.cas.CentralAuthenticationServiceorg.jasig.cas.ticket.TicketExceptionpublic void setAuthenticationManager(org.jasig.cas.authentication.AuthenticationManager manager)
public void setTicketRegistry(org.jasig.cas.ticket.registry.TicketRegistry ticketRegistry)
ticketRegistry - the TicketRegistry to set.public void setServiceTicketRegistry(org.jasig.cas.ticket.registry.TicketRegistry serviceTicketRegistry)
public void setTicketGrantingTicketExpirationPolicy(org.jasig.cas.ticket.ExpirationPolicy ticketGrantingTicketExpirationPolicy)
ticketGrantingTicketExpirationPolicy - the non-null policy on TGT expiration.public void setServicesManager(org.jasig.cas.services.ServicesManager servicesManager)
public void setTicketGrantingTicketUniqueTicketIdGenerator(org.jasig.cas.util.UniqueTicketIdGenerator uniqueTicketIdGenerator)
uniqueTicketIdGenerator - the non-null TGT unique ID generator.public void setCentralAuthenticationServiceDelegate(org.jasig.cas.CentralAuthenticationService cas)
cas - the non-null delegate CASpublic void setAuthenticationMethodAttributeName(String authenticationMethodAttributeName)
authenticationMethodAttributeName - the authentication method attribute namepublic void setPersistentIdGenerator(org.jasig.cas.authentication.principal.PersistentIdGenerator persistentIdGenerator)
Copyright © 2013-2015 Unicon Inc.. All Rights Reserved.