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

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

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

origin: org.apereo.cas/cas-server-support-saml-idp-web

private static NameIDPolicy getNameIDPolicy(final RequestAbstractType authnRequest) {
  if (authnRequest instanceof AuthnRequest) {
    return AuthnRequest.class.cast(authnRequest).getNameIDPolicy();
  }
  return null;
}
origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
@Override
@Nullable public SAMLObject apply(@Nullable final ProfileRequestContext profileRequestContext) {
  
  final AuthnRequest request = requestLookupStrategy.apply(profileRequestContext);
  if (request != null) {
    return request.getNameIDPolicy();
  }
  
  return null;
}

origin: org.opensaml/opensaml-saml-api

/** {@inheritDoc} */
@Override
@Nullable protected String getEffectiveSPNameQualifier(@Nonnull final ProfileRequestContext profileRequestContext) {
  
  // Override the default behavior if the SP specifies a qualifier in its request.
  final AuthnRequest request = requestLookupStrategy.apply(profileRequestContext);
  if (request != null && request.getNameIDPolicy() != null) {
    final String qual = request.getNameIDPolicy().getSPNameQualifier();
    if (!Strings.isNullOrEmpty(qual)) {
      return qual;
    }
  }
  
  return super.getEffectiveSPNameQualifier(profileRequestContext);
}
origin: org.opensaml/opensaml-saml-impl

/**
 * Extract a format required by the inbound request, if present.
 * 
 * @param profileRequestContext current profile request context
 * 
 * @return a format dictated by the request, or null 
 */
@Nullable private String getRequiredFormat(@Nonnull final ProfileRequestContext profileRequestContext) {
  
  if (request != null) {
    final NameIDPolicy policy = request.getNameIDPolicy();
    if (policy != null) {
      final String format = policy.getFormat();
      if (!Strings.isNullOrEmpty(format) && !NameID.UNSPECIFIED.equals(format)
          && !NameID.ENCRYPTED.equals(format)) {
        return format;
      }
    }
  }
  
  return null;
}
origin: net.shibboleth.idp/idp-saml-impl

if (request.getNameIDPolicy() != null) {
  final String requestedFormat = request.getNameIDPolicy().getFormat();
  if (requestedFormat != null && NameID.ENCRYPTED.equals(requestedFormat)) {
    log.debug("{} Request asked for encrypted identifier, disregarding installed predicate");
origin: spring-projects/spring-security-saml

.setRequestedAuthenticationContext(getRequestedAuthenticationContext(request))
.setAuthenticationContextClassReference(getAuthenticationContextClassReference(request))
.setNameIdPolicy(fromNameIDPolicy(request.getNameIDPolicy()));
org.opensaml.saml.saml2.coreAuthnRequestgetNameIDPolicy

Javadoc

Gets the NameIDPolicy of the request.

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,
  • getID,
  • getSubject,
  • isForceAuthn,
  • isPassive,
  • getRequestedAuthnContext

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top Vim plugins
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