Tabnine Logo
ResponseType
Code IndexAdd Tabnine to your IDE (free)

How to use
ResponseType
in
org.keycloak.dom.saml.v2.protocol

Best Java code snippets using org.keycloak.dom.saml.v2.protocol.ResponseType (Showing top 4 results out of 315)

origin: stackoverflow.com

 ResponseType response = new ResponseType();
try{
  //set some properties of the response object.
  response.setStatus(1);
  //return response;
}catch (Exception e){
  //Some other properties of the response object according to the exception.
  response.setStatus(0);
  //return response;
}finally{
  return response;
}
origin: org.keycloak/keycloak-saml-adapter-core

protected AuthOutcome handleLoginResponse(SAMLDocumentHolder responseHolder, boolean postBinding, OnSessionCreated onCreateSession) {
  final ResponseType responseType = (ResponseType) responseHolder.getSamlObject();
  AssertionType assertion = null;
  if (! isSuccessfulSamlResponse(responseType) || responseType.getAssertions() == null || responseType.getAssertions().isEmpty()) {
    challenge = new AuthChallenge() {
      @Override
      cvb.addAllowedAudience(URI.create(deployment.getEntityID()));
      cvb.addAllowedAudience(URI.create(responseType.getDestination()));
    } catch (IllegalArgumentException ex) {
origin: org.keycloak/keycloak-saml-adapter-core

private boolean isSuccessfulSamlResponse(ResponseType responseType) {
  return responseType != null
   && responseType.getStatus() != null
   && responseType.getStatus().getStatusCode() != null
   && responseType.getStatus().getStatusCode().getValue() != null
   && Objects.equals(responseType.getStatus().getStatusCode().getValue().toString(), JBossSAMLURIConstants.STATUS_SUCCESS.get());
}
origin: stackoverflow.com

mResponse = new ResponseType();
final DefaultHandler handler = new ResponseHandler(mElementStack, mResponse, attributes, mXmlReader, this);
mElementStack.push("Response");
org.keycloak.dom.saml.v2.protocolResponseType

Javadoc

Java class for ResponseType complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType name="ResponseType"> 
<complexContent> 
<extension base="{urn:oasis:names:tc:SAML:2.0:protocol}StatusResponseType"> 
<choice maxOccurs="unbounded" minOccurs="0"> 
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}Assertion"/> 
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}EncryptedAssertion"/> 
</choice> 
</extension> 
</complexContent> 
</complexType> 

Most used methods

  • <init>
  • getAssertions
    Gets a read only list of assertions
  • getDestination
  • getStatus
  • setStatus

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
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