Codota Logo
JaasPasswordCallbackHandler.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.springframework.security.authentication.jaas.JaasPasswordCallbackHandler
constructor

Best Java code snippets using org.springframework.security.authentication.jaas.JaasPasswordCallbackHandler.<init> (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-security

/**
 * Validates the required properties are set. In addition, if
 * {@link #setCallbackHandlers(JaasAuthenticationCallbackHandler[])} has not been
 * called with valid handlers, initializes to use {@link JaasNameCallbackHandler} and
 * {@link JaasPasswordCallbackHandler}.
 */
public void afterPropertiesSet() throws Exception {
  Assert.hasLength(this.loginContextName,
      "loginContextName cannot be null or empty");
  Assert.notEmpty(this.authorityGranters,
      "authorityGranters cannot be null or empty");
  if (ObjectUtils.isEmpty(this.callbackHandlers)) {
    setCallbackHandlers(new JaasAuthenticationCallbackHandler[] {
        new JaasNameCallbackHandler(), new JaasPasswordCallbackHandler() });
  }
  Assert.notNull(this.loginExceptionResolver,
      "loginExceptionResolver cannot be null");
}
origin: org.springframework.security/spring-security-core

/**
 * Validates the required properties are set. In addition, if
 * {@link #setCallbackHandlers(JaasAuthenticationCallbackHandler[])} has not been
 * called with valid handlers, initializes to use {@link JaasNameCallbackHandler} and
 * {@link JaasPasswordCallbackHandler}.
 */
public void afterPropertiesSet() throws Exception {
  Assert.hasLength(this.loginContextName,
      "loginContextName cannot be null or empty");
  Assert.notEmpty(this.authorityGranters,
      "authorityGranters cannot be null or empty");
  if (ObjectUtils.isEmpty(this.callbackHandlers)) {
    setCallbackHandlers(new JaasAuthenticationCallbackHandler[] {
        new JaasNameCallbackHandler(), new JaasPasswordCallbackHandler() });
  }
  Assert.notNull(this.loginExceptionResolver,
      "loginExceptionResolver cannot be null");
}
origin: spring-projects/spring-security

private void testConfigureJaasCase(JaasAuthenticationProvider p1,
    JaasAuthenticationProvider p2) throws Exception {
  p1.setLoginConfig(new ClassPathResource(resolveConfigFile("/test1.conf")));
  p1.setLoginContextName("test1");
  p1.setCallbackHandlers(new JaasAuthenticationCallbackHandler[] {
      new TestCallbackHandler(), new JaasNameCallbackHandler(),
      new JaasPasswordCallbackHandler() });
  p1.setAuthorityGranters(new AuthorityGranter[] { new TestAuthorityGranter() });
  p1.afterPropertiesSet();
  testAuthenticate(p1);
  p2.setLoginConfig(new ClassPathResource(resolveConfigFile("/test2.conf")));
  p2.setLoginContextName("test2");
  p2.setCallbackHandlers(new JaasAuthenticationCallbackHandler[] {
      new TestCallbackHandler(), new JaasNameCallbackHandler(),
      new JaasPasswordCallbackHandler() });
  p2.setAuthorityGranters(new AuthorityGranter[] { new TestAuthorityGranter() });
  p2.afterPropertiesSet();
  testAuthenticate(p2);
}
origin: org.springframework.security/org.springframework.security.core

/**
 * Validates the required properties are set. In addition, if
 * {@link #setCallbackHandlers(JaasAuthenticationCallbackHandler[])} has not
 * been called with valid handlers, initializes to use
 * {@link JaasNameCallbackHandler} and {@link JaasPasswordCallbackHandler}.
 */
public void afterPropertiesSet() throws Exception {
  Assert.hasLength(loginContextName, "loginContextName cannot be null or empty");
  Assert.notEmpty(authorityGranters, "authorityGranters cannot be null or empty");
  if (ObjectUtils.isEmpty(callbackHandlers)) {
    setCallbackHandlers(new JaasAuthenticationCallbackHandler[] { new JaasNameCallbackHandler(),
        new JaasPasswordCallbackHandler() });
  }
  Assert.notNull(loginExceptionResolver, "loginExceptionResolver cannot be null");
}
origin: apache/servicemix-bundles

/**
 * Validates the required properties are set. In addition, if
 * {@link #setCallbackHandlers(JaasAuthenticationCallbackHandler[])} has not been
 * called with valid handlers, initializes to use {@link JaasNameCallbackHandler} and
 * {@link JaasPasswordCallbackHandler}.
 */
public void afterPropertiesSet() throws Exception {
  Assert.hasLength(this.loginContextName,
      "loginContextName cannot be null or empty");
  Assert.notEmpty(this.authorityGranters,
      "authorityGranters cannot be null or empty");
  if (ObjectUtils.isEmpty(this.callbackHandlers)) {
    setCallbackHandlers(new JaasAuthenticationCallbackHandler[] {
        new JaasNameCallbackHandler(), new JaasPasswordCallbackHandler() });
  }
  Assert.notNull(this.loginExceptionResolver,
      "loginExceptionResolver cannot be null");
}
org.springframework.security.authentication.jaasJaasPasswordCallbackHandler<init>

Popular methods of JaasPasswordCallbackHandler

    Popular in Java

    • Making http post requests using okhttp
    • getResourceAsStream (ClassLoader)
    • getApplicationContext (Context)
    • runOnUiThread (Activity)
    • ByteBuffer (java.nio)
      A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
    • Random (java.util)
      This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
    • Stack (java.util)
      The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
    • ReentrantLock (java.util.concurrent.locks)
      A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now