congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Cas20ServiceTicketValidator.parseProxyGrantingTicketFromResponse
Code IndexAdd Tabnine to your IDE (free)

How to use
parseProxyGrantingTicketFromResponse
method
in
org.jasig.cas.client.validation.Cas20ServiceTicketValidator

Best Java code snippets using org.jasig.cas.client.validation.Cas20ServiceTicketValidator.parseProxyGrantingTicketFromResponse (Showing top 1 results out of 315)

origin: apereo/java-cas-client

protected Assertion parseResponseFromServer(final String response) throws TicketValidationException {
  final String error = parseAuthenticationFailureFromResponse(response);
  if (CommonUtils.isNotBlank(error)) {
    throw new TicketValidationException(error);
  }
  final String principal = parsePrincipalFromResponse(response);
  final String proxyGrantingTicketIou = parseProxyGrantingTicketFromResponse(response);
  final String proxyGrantingTicket;
  if (CommonUtils.isBlank(proxyGrantingTicketIou) || this.proxyGrantingTicketStorage == null) {
    proxyGrantingTicket = null;
  } else {
    proxyGrantingTicket = this.proxyGrantingTicketStorage.retrieve(proxyGrantingTicketIou);
  }
  if (CommonUtils.isEmpty(principal)) {
    throw new TicketValidationException("No principal was found in the response from the CAS server.");
  }
  final Assertion assertion;
  final Map<String, Object> attributes = extractCustomAttributes(response);
  if (CommonUtils.isNotBlank(proxyGrantingTicket)) {
    final AttributePrincipal attributePrincipal = new AttributePrincipalImpl(principal, attributes,
        proxyGrantingTicket, this.proxyRetriever);
    assertion = new AssertionImpl(attributePrincipal);
  } else {
    assertion = new AssertionImpl(new AttributePrincipalImpl(principal, attributes));
  }
  customParseResponse(response, assertion);
  return assertion;
}
org.jasig.cas.client.validationCas20ServiceTicketValidatorparseProxyGrantingTicketFromResponse

Popular methods of Cas20ServiceTicketValidator

  • <init>
    Constructs an instance of the CAS 2.0 Service Ticket Validator with the supplied CAS server url pref
  • setProxyCallbackUrl
  • setProxyGrantingTicketStorage
  • setRenew
  • setEncoding
  • setProxyRetriever
  • customParseResponse
    Template method if additional custom parsing (such as Proxying) needs to be done.
  • extractCustomAttributes
    Default attribute parsing of attributes that look like the following:
  • getEncoding
  • setCustomParameters
  • encodeUrl
  • getURLConnectionFactory
  • encodeUrl,
  • getURLConnectionFactory,
  • parseAuthenticationFailureFromResponse,
  • parsePrincipalFromResponse,
  • setHostnameVerifier,
  • setURLConnectionFactory,
  • validate

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • Kernel (java.awt.image)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • String (java.lang)
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JTextField (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now