Class Cas10RoleParsingTicketValidator

java.lang.Object
org.apereo.cas.client.validation.AbstractUrlBasedTicketValidator
org.apereo.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator
org.jenkinsci.plugins.cas.validation.Cas10RoleParsingTicketValidator
All Implemented Interfaces:
org.apereo.cas.client.validation.TicketValidator

public class Cas10RoleParsingTicketValidator extends org.apereo.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator
Implementation of a Ticket Validator that can validate tickets conforming to the CAS 1.0 specification. This implementation also allows parsing roles from a custom extension with a Groovy script.
Author:
Scott Battaglia, Fabien Crespel
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.apereo.cas.client.validation.AbstractUrlBasedTicketValidator

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
     
    protected String
     
    protected org.apereo.cas.client.validation.Assertion
     
    static List<String>
    parseRolesFromValidationResponse(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript script, String response)
    Parse roles from a custom CAS 1.0 validation response.
    void
    setRolesAttribute(String rolesAttribute)
     
    void
    setRolesValidationScript(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript rolesValidationScript)
     

    Methods inherited from class org.apereo.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator

    retrieveResponseFromServer

    Methods inherited from class org.apereo.cas.client.validation.AbstractUrlBasedTicketValidator

    constructValidationUrl, encodeUrl, getCasServerUrlPrefix, getCustomParameters, getEncoding, getURLConnectionFactory, isRenew, populateUrlAttributeMap, setCustomParameters, setEncoding, setRenew, setURLConnectionFactory, validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Cas10RoleParsingTicketValidator

      public Cas10RoleParsingTicketValidator(String casServerUrlPrefix)
  • Method Details

    • getUrlSuffix

      protected String getUrlSuffix()
      Specified by:
      getUrlSuffix in class org.apereo.cas.client.validation.AbstractUrlBasedTicketValidator
    • parseResponseFromServer

      protected org.apereo.cas.client.validation.Assertion parseResponseFromServer(String response) throws org.apereo.cas.client.validation.TicketValidationException
      Specified by:
      parseResponseFromServer in class org.apereo.cas.client.validation.AbstractUrlBasedTicketValidator
      Throws:
      org.apereo.cas.client.validation.TicketValidationException
    • parseRolesFromValidationResponse

      public static List<String> parseRolesFromValidationResponse(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript script, String response) throws Exception
      Parse roles from a custom CAS 1.0 validation response.
      Parameters:
      script - Groovy roles validation script
      response - validation response from the CAS server
      Returns:
      list of roles
      Throws:
      Exception
    • getRolesValidationScript

      public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getRolesValidationScript()
      Returns:
      the rolesValidationScript
    • setRolesValidationScript

      public void setRolesValidationScript(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript rolesValidationScript)
      Parameters:
      rolesValidationScript - the rolesValidationScript to set
    • getRolesAttribute

      public String getRolesAttribute()
      Returns:
      the rolesAttribute
    • setRolesAttribute

      public void setRolesAttribute(String rolesAttribute)
      Parameters:
      rolesAttribute - the rolesAttribute to set