Class AbstractCentralAuthenticationService

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.CentralAuthenticationService
    Direct Known Subclasses:
    DefaultCentralAuthenticationService

    public abstract class AbstractCentralAuthenticationService
    extends java.lang.Object
    implements org.apereo.cas.CentralAuthenticationService, java.io.Serializable
    An abstract implementation of the CentralAuthenticationService that provides access to the needed scaffolding and services that are necessary to CAS, such as ticket registry, service registry, etc. The intention here is to allow extensions to easily benefit from these already-configured components without having to to duplicate them again.
    Since:
    4.2.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doPublishEvent​(org.springframework.context.ApplicationEvent e)
      Publish CAS events.
      protected void evaluateProxiedServiceIfNeeded​(org.apereo.cas.authentication.principal.Service service, org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket, org.apereo.cas.services.RegisteredService registeredService)
      Evaluate proxied service if needed.
      protected org.apereo.cas.authentication.Authentication getAuthenticationSatisfiedByPolicy​(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.ServiceContext context)
      Gets the authentication satisfied by policy.
      org.apereo.cas.ticket.TicketFactory getTicketFactory()  
      protected boolean isTicketAuthenticityVerified​(java.lang.String ticketId)
      Verify the ticket id received is actually legitimate before contacting downstream systems to find and process it.
      protected org.apereo.cas.authentication.principal.WebApplicationService resolveServiceFromAuthenticationRequest​(org.apereo.cas.authentication.principal.Service service)
      Resolve service from authentication request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.CentralAuthenticationService

        createProxyGrantingTicket, createTicketGrantingTicket, grantProxyTicket, grantServiceTicket, validateServiceTicket
    • Constructor Detail

      • AbstractCentralAuthenticationService

        public AbstractCentralAuthenticationService()
    • Method Detail

      • doPublishEvent

        protected void doPublishEvent​(org.springframework.context.ApplicationEvent e)
        Publish CAS events.
        Parameters:
        e - the event
      • getAuthenticationSatisfiedByPolicy

        protected org.apereo.cas.authentication.Authentication getAuthenticationSatisfiedByPolicy​(org.apereo.cas.authentication.Authentication authentication,
                                                                                                  org.apereo.cas.services.ServiceContext context)
                                                                                           throws org.apereo.cas.ticket.AbstractTicketException
        Gets the authentication satisfied by policy.
        Parameters:
        authentication - the authentication
        context - the context
        Returns:
        the authentication satisfied by policy
        Throws:
        org.apereo.cas.ticket.AbstractTicketException - the ticket exception
      • evaluateProxiedServiceIfNeeded

        protected void evaluateProxiedServiceIfNeeded​(org.apereo.cas.authentication.principal.Service service,
                                                      org.apereo.cas.ticket.TicketGrantingTicket ticketGrantingTicket,
                                                      org.apereo.cas.services.RegisteredService registeredService)
        Evaluate proxied service if needed.
        Parameters:
        service - the service
        ticketGrantingTicket - the ticket granting ticket
        registeredService - the registered service
      • resolveServiceFromAuthenticationRequest

        protected org.apereo.cas.authentication.principal.WebApplicationService resolveServiceFromAuthenticationRequest​(org.apereo.cas.authentication.principal.Service service)
        Resolve service from authentication request.
        Parameters:
        service - the service
        Returns:
        the service
      • isTicketAuthenticityVerified

        protected boolean isTicketAuthenticityVerified​(java.lang.String ticketId)
        Verify the ticket id received is actually legitimate before contacting downstream systems to find and process it.
        Parameters:
        ticketId - the ticket id
        Returns:
        true/false
      • getTicketFactory

        public org.apereo.cas.ticket.TicketFactory getTicketFactory()
        Specified by:
        getTicketFactory in interface org.apereo.cas.CentralAuthenticationService