Interface WebApplicationService

All Superinterfaces:
Principal, Serializable, Service

public interface WebApplicationService extends Service
Represents a service using CAS that comes from the web.
Since:
3.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Bean name for the factory implementation that creates this service type.

    Fields inherited from interface org.apereo.cas.authentication.principal.Service

    LOGGER
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the artifact supplied with the service.
    org.apereo.cas.validation.ValidationResponseType
    Ticket validation response MUST be produced based on the parameter value.
    Indicates the source from which the service object was extracted and built.
    boolean
    Return if the service is already logged out.
    void
    setLoggedOutAlready(boolean loggedOutAlready)
    Set if the service is already logged out.

    Methods inherited from interface org.apereo.cas.authentication.principal.Principal

    getAttributes, getId

    Methods inherited from interface org.apereo.cas.authentication.principal.Service

    getOriginalUrl, getShortenedId, setAttributes, setPrincipal
  • Field Details

    • BEAN_NAME_FACTORY

      static final String BEAN_NAME_FACTORY
      Bean name for the factory implementation that creates this service type.
      See Also:
  • Method Details

    • getArtifactId

      String getArtifactId()
      Retrieves the artifact supplied with the service. May be null.
      Returns:
      the artifact if it exists, null otherwise.
    • getSource

      String getSource()
      Indicates the source from which the service object was extracted and built. Typically maps to a request parameter or attribute that provides the request.
      Returns:
      the source if it exists, null otherwise.
    • getFormat

      org.apereo.cas.validation.ValidationResponseType getFormat()
      Ticket validation response MUST be produced based on the parameter value. Supported values are XML and JSON. If this parameter is not set, the default XML format will be used. If the parameter value is not supported by the CAS server, an error must be produced.
      Returns:
      the requested format
      Since:
      4.2
    • isLoggedOutAlready

      boolean isLoggedOutAlready()
      Return if the service is already logged out.
      Returns:
      if the service is already logged out.
    • setLoggedOutAlready

      void setLoggedOutAlready(boolean loggedOutAlready)
      Set if the service is already logged out.
      Parameters:
      loggedOutAlready - if the service is already logged out.