Class CasProtocol

java.lang.Object
hudson.model.AbstractDescribableImpl<CasProtocol>
org.jenkinsci.plugins.cas.CasProtocol
All Implemented Interfaces:
ExtensionPoint, Describable<CasProtocol>
Direct Known Subclasses:
Cas10Protocol, Cas20Protocol, Cas30Protocol, Saml11Protocol

public abstract class CasProtocol extends AbstractDescribableImpl<CasProtocol> implements ExtensionPoint
CAS protocol extension point. The protocol determines how to validate a server response, and may define specific configuration options.
Author:
Fabien Crespel
  • Field Details

    • authoritiesAttribute

      public final String authoritiesAttribute
    • fullNameAttribute

      public final String fullNameAttribute
    • emailAttribute

      public final String emailAttribute
    • customValidationParams

      public final String customValidationParams
    • artifactParameter

      protected transient String artifactParameter
    • authoritiesAttributes

      protected transient List<String> authoritiesAttributes
    • customValidationParamsMap

      protected transient Map<String,String> customValidationParamsMap
  • Constructor Details

    • CasProtocol

      protected CasProtocol()
    • CasProtocol

      protected CasProtocol(String authoritiesAttribute)
    • CasProtocol

      protected CasProtocol(String authoritiesAttribute, String fullNameAttribute, String emailAttribute)
    • CasProtocol

      protected CasProtocol(String authoritiesAttribute, String fullNameAttribute, String emailAttribute, String customValidationParams)
  • Method Details

    • getArtifactParameter

      public String getArtifactParameter()
      Returns:
      the artifactParameter
    • getAuthoritiesAttribute

      public String getAuthoritiesAttribute()
      Returns:
      the authoritiesAttribute
    • getAuthoritiesAttributes

      public List<String> getAuthoritiesAttributes()
      Returns:
      the authoritiesAttributes
    • getFullNameAttribute

      public String getFullNameAttribute()
      Returns:
      the fullNameAttribute
    • getEmailAttribute

      public String getEmailAttribute()
      Returns:
      the emailAttribute
    • getCustomValidationParams

      public String getCustomValidationParams()
      Returns:
      the customValidationParams
    • getCustomValidationParamsMap

      public Map<String,String> getCustomValidationParamsMap()
      Returns:
      the customValidationParamsMap
    • createServiceProperties

      public org.springframework.security.cas.ServiceProperties createServiceProperties()
      Create a ServiceProperties object describing the CAS service.
      Returns:
      ServiceProperties
    • createTicketValidator

      public abstract org.apereo.cas.client.validation.TicketValidator createTicketValidator(String casServerUrl)
      Create a TicketValidator used to validate a CAS response.
      Parameters:
      casServerUrl - CAS server URL prefix
      Returns:
      TicketValidator
    • all

      Returns all the registered CasProtocol descriptors.
      Returns:
      all CasProtocol descriptors