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

How to use
convertLoginConfigToUrl
method
in
org.springframework.security.authentication.jaas.JaasAuthenticationProvider

Best Java code snippets using org.springframework.security.authentication.jaas.JaasAuthenticationProvider.convertLoginConfigToUrl (Showing top 4 results out of 315)

origin: spring-projects/spring-security

/**
 * Loops through the login.config.url.1,login.config.url.2 properties looking for the
 * login configuration. If it is not set, it will be set to the last available
 * login.config.url.X property.
 *
 */
private void configureJaasUsingLoop() throws IOException {
  String loginConfigUrl = convertLoginConfigToUrl();
  boolean alreadySet = false;
  int n = 1;
  final String prefix = "login.config.url.";
  String existing;
  while ((existing = Security.getProperty(prefix + n)) != null) {
    alreadySet = existing.equals(loginConfigUrl);
    if (alreadySet) {
      break;
    }
    n++;
  }
  if (!alreadySet) {
    String key = prefix + n;
    log.debug("Setting security property [" + key + "] to: " + loginConfigUrl);
    Security.setProperty(key, loginConfigUrl);
  }
}
origin: org.springframework.security/spring-security-core

/**
 * Loops through the login.config.url.1,login.config.url.2 properties looking for the
 * login configuration. If it is not set, it will be set to the last available
 * login.config.url.X property.
 *
 */
private void configureJaasUsingLoop() throws IOException {
  String loginConfigUrl = convertLoginConfigToUrl();
  boolean alreadySet = false;
  int n = 1;
  final String prefix = "login.config.url.";
  String existing;
  while ((existing = Security.getProperty(prefix + n)) != null) {
    alreadySet = existing.equals(loginConfigUrl);
    if (alreadySet) {
      break;
    }
    n++;
  }
  if (!alreadySet) {
    String key = prefix + n;
    log.debug("Setting security property [" + key + "] to: " + loginConfigUrl);
    Security.setProperty(key, loginConfigUrl);
  }
}
origin: apache/servicemix-bundles

/**
 * Loops through the login.config.url.1,login.config.url.2 properties looking for the
 * login configuration. If it is not set, it will be set to the last available
 * login.config.url.X property.
 *
 */
private void configureJaasUsingLoop() throws IOException {
  String loginConfigUrl = convertLoginConfigToUrl();
  boolean alreadySet = false;
  int n = 1;
  final String prefix = "login.config.url.";
  String existing;
  while ((existing = Security.getProperty(prefix + n)) != null) {
    alreadySet = existing.equals(loginConfigUrl);
    if (alreadySet) {
      break;
    }
    n++;
  }
  if (!alreadySet) {
    String key = prefix + n;
    log.debug("Setting security property [" + key + "] to: " + loginConfigUrl);
    Security.setProperty(key, loginConfigUrl);
  }
}
origin: org.springframework.security/org.springframework.security.core

/**
 * Loops through the login.config.url.1,login.config.url.2 properties looking for the login configuration.
 * If it is not set, it will be set to the last available login.config.url.X property.
 *
 */
private void configureJaasUsingLoop() throws IOException {
  String loginConfigUrl = convertLoginConfigToUrl();
  boolean alreadySet = false;
  int n = 1;
  final String prefix = "login.config.url.";
  String existing;
  while ((existing = Security.getProperty(prefix + n)) != null) {
    alreadySet = existing.equals(loginConfigUrl);
    if (alreadySet) {
      break;
    }
    n++;
  }
  if (!alreadySet) {
    String key = prefix + n;
    log.debug("Setting security property [" + key + "] to: " + loginConfigUrl);
    Security.setProperty(key, loginConfigUrl);
  }
}
org.springframework.security.authentication.jaasJaasAuthenticationProviderconvertLoginConfigToUrl

Popular methods of JaasAuthenticationProvider

  • getApplicationEventPublisher
  • getLoginContextName
  • configureJaas
    Hook method for configuring Jaas.
  • configureJaasUsingLoop
    Loops through the login.config.url.1,login.config.url.2 properties looking for the login configurati
  • <init>
  • afterPropertiesSet
  • setLoginConfig
    Set the JAAS login configuration file.
  • setLoginContextName
  • authenticate
  • getAuthorityGranters
  • getCallbackHandlers
  • getLoginConfig
  • getCallbackHandlers,
  • getLoginConfig,
  • getLoginExceptionResolver,
  • handleLogout,
  • setApplicationEventPublisher,
  • setAuthorityGranters,
  • setCallbackHandlers,
  • setLoginExceptionResolver,
  • setRefreshConfigurationOnStartup

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collectors (java.util.stream)
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JList (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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