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

How to use
Authenticator
in
com.atlassian.user.security.authentication

Best Java code snippets using com.atlassian.user.security.authentication.Authenticator (Showing top 6 results out of 315)

origin: com.atlassian.refapp/atlassian-refapp-sal-plugin

public boolean authenticate(final String username, final String password) {
  try {
    final boolean authenticated = authenticator.authenticate(username, password);
    if (!authenticated) {
      log.info("Cannot authenticate user '" + username + "' as they used an incorrect password");
    }
    return authenticated;
  } catch (final EntityException e) {
    log.info("Cannot authenticate user '" + username + "' as they do not exist.");
    return false;
  }
}
origin: com.atlassian.user/atlassian-user-core

private boolean authenticate(Authenticator authenticator, String username, String password)
{
  try
  {
    return authenticator.authenticate(username, password);
  }
  catch (EntityException e)
  {
    log.error(authenticator.getRepository() + ": " + e.getMessage());
    return false;
  }
}
origin: com.atlassian.user/atlassian-user-core

private List<Authenticator> getAuthenticatorsForRepository(RepositoryIdentifier repository)
{
  return authenticators.stream()
      .filter(authenticator -> authenticator.getRepository().equals(repository))
      .collect(Collectors.toCollection(LinkedList::new));
}
origin: com.atlassian.refapp/sal-refimpl-user-plugin

public boolean authenticate(final String username, final String password)
{
  try
  {
    final boolean authenticated = authenticator.authenticate(username, password);
    if (!authenticated)
    {
      log.info("Cannot authenticate user '" + username + "' as they used an incorrect password");
    }
    return authenticated;
  }
  catch (final EntityException e)
  {
    log.info("Cannot authenticate user '" + username + "' as they do not exist.");
    return false;
  }
}
origin: com.atlassian.refapp/atlassian-refapp-auth-plugin

  protected boolean authenticate(String username, String password) {
    try {
      boolean authenticated = authenticator.authenticate(username, password);
      if (authenticated)
        log.info("User '" + username + "' successfully logged in");
      else
        log.info("Cannot login user '" + username + "' as they used an incorrect password");
      return authenticated;
    } catch (EntityException e) {
      log.info("Cannot login user '" + username + "' as they do not exist.");
      return false;
    }
  }
}
origin: com.atlassian.sal/sal-refimpl-user-plugin

public boolean authenticate(final String username, final String password)
{
  try
  {
    final boolean authenticated = authenticator.authenticate(username, password);
    if (!authenticated)
    {
      log.info("Cannot authenticate user '" + username + "' as they used an incorrect password");
    }
    return authenticated;
  }
  catch (final EntityException e)
  {
    log.info("Cannot authenticate user '" + username + "' as they do not exist.");
    return false;
  }
}
com.atlassian.user.security.authenticationAuthenticator

Javadoc

Authenticator interface, add to whichever object should be capable of authenticating users.

Most used methods

  • authenticate
  • getRepository

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • CodeWhisperer 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