Tabnine Logo
AuthnRequest.isPassive
Code IndexAdd Tabnine to your IDE (free)

How to use
isPassive
method
in
org.opensaml.saml.saml2.core.AuthnRequest

Best Java code snippets using org.opensaml.saml.saml2.core.AuthnRequest.isPassive (Showing top 5 results out of 315)

origin: net.shibboleth.idp/idp-saml-impl

/** {@inheritDoc} */
@Override
@Nullable public Boolean apply(@Nullable final ProfileRequestContext input) {
  final AuthnRequest request = requestLookupStrategy.apply(input);
  if (request != null) {
    return request.isPassive();
  }
  
  return null;
}
origin: org.opensaml/opensaml-saml-api

if (authnRequest != null && authnRequest.isPassive()) {
  log.debug("Request was a SAML 2 AuthnRequest with IsPassive set, handling error with response");
  return false;
origin: org.apereo.cas/cas-server-support-saml-idp-web

/**
 * Redirect request for authentication.
 *
 * @param pair     the pair
 * @param request  the request
 * @param response the response
 * @throws Exception the exception
 */
protected void issueAuthenticationRequestRedirect(final Pair<? extends SignableSAMLObject, MessageContext> pair,
                         final HttpServletRequest request,
                         final HttpServletResponse response) throws Exception {
  val authnRequest = (AuthnRequest) pair.getLeft();
  val serviceUrl = constructServiceUrl(request, response, pair);
  LOGGER.debug("Created service url [{}]", DigestUtils.abbreviate(serviceUrl));
  val initialUrl = CommonUtils.constructRedirectUrl(casProperties.getServer().getLoginUrl(),
    CasProtocolConstants.PARAMETER_SERVICE, serviceUrl, authnRequest.isForceAuthn(),
    authnRequest.isPassive());
  val urlToRedirectTo = buildRedirectUrlByRequestedAuthnContext(initialUrl, authnRequest, request);
  LOGGER.debug("Redirecting SAML authN request to [{}]", urlToRedirectTo);
  val authenticationRedirectStrategy = new DefaultAuthenticationRedirectStrategy();
  authenticationRedirectStrategy.redirect(request, response, urlToRedirectTo);
}
origin: net.shibboleth.idp/idp-saml-impl

/** {@inheritDoc} */
@Override
protected void doExecute(@Nonnull final ProfileRequestContext profileRequestContext) {
  final AuthenticationContext authnCtx = new AuthenticationContext();
  if (authnRequest != null) {
    authnCtx.setForceAuthn(authnRequest.isForceAuthn());
    authnCtx.setIsPassive(authnRequest.isPassive());
  }
  final AuthenticationContext initialAuthnContext =
      profileRequestContext.getSubcontext(AuthenticationContext.class);
  if (initialAuthnContext != null) {
    authnCtx.setInitialAuthenticationResult(initialAuthnContext.getAuthenticationResult());
  }
  
  if (!authnCtx.isForceAuthn()) {
    authnCtx.setForceAuthn(forceAuthnPredicate.apply(profileRequestContext));
  }
  
  profileRequestContext.addSubcontext(authnCtx, true);
  log.debug("{} Created authentication context: {}", getLogPrefix(), authnCtx);
}

origin: spring-projects/spring-security-saml

.setPassive(request.isPassive())
.setId(request.getID())
.setIssueInstant(request.getIssueInstant())
org.opensaml.saml.saml2.coreAuthnRequestisPassive

Javadoc

Gets whether the IdP should refrain from interacting with the user during the authentication process.

Popular methods of AuthnRequest

  • setNameIDPolicy
    Sets the NameIDPolicy of the request.
  • setAssertionConsumerServiceURL
    Sets the URL of the particular Assertion Consumer Service to which the response to this request shou
  • setIssueInstant
  • setIssuer
  • setProtocolBinding
    Sets the protocol binding URI for the request.
  • setDestination
  • setID
  • setRequestedAuthnContext
    Sets the RequestedAuthnContext of the request.
  • setForceAuthn
    Sets whether the IdP should force the user to reauthenticate.
  • getAssertionConsumerServiceURL
    Gets the URL of the particular Assertion Consumer Service to which the response to this request shou
  • getProtocolBinding
    Gets the protocol binding URI for the request.
  • setIsPassive
    Sets whether the IdP should refrain from interacting with the user during the authentication process
  • getProtocolBinding,
  • setIsPassive,
  • setVersion,
  • getAssertionConsumerServiceIndex,
  • getNameIDPolicy,
  • getID,
  • getSubject,
  • isForceAuthn,
  • getRequestedAuthnContext

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Collectors (java.util.stream)
  • ImageIO (javax.imageio)
  • JFileChooser (javax.swing)
  • JLabel (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best plugins for Eclipse
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