Codota Logo
AuthenticationListener.authenticationSuccess
Code IndexAdd Codota to your IDE (free)

How to use
authenticationSuccess
method
in
com.atlassian.sal.api.auth.AuthenticationListener

Best Java code snippets using com.atlassian.sal.api.auth.AuthenticationListener.authenticationSuccess (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: com.atlassian.plugins/atlassian-connect-core

private void impersonateSubject(FilterChain filterChain, HttpServletRequest request, HttpServletResponse response, UserProfile userProfile) throws IOException, ServletException {
  // Products use the username to set the authentication context.
  SimplePrincipal principal = new SimplePrincipal(userProfile.getUsername());
  final Authenticator.Result authenticationResult = new Authenticator.Result.Success(createMessage("Successful three-legged-auth"), principal);
  authenticationListener.authenticationSuccess(authenticationResult, request, response);
  filterChain.doFilter(request, response);
}
origin: com.atlassian.plugins/atlassian-connect-server-core

private void actAsAddonUser(FilterChain filterChain, HttpServletRequest request, HttpServletResponse response, String addonKey) throws IOException, ServletException {
  try {
    final Principal principal = getPrincipal(addonKey);
    final Authenticator.Result authenticationResult = new Authenticator.Result.Success(createMessage("Successful two-legged-auth"), principal);
    authenticationListener.authenticationSuccess(authenticationResult, request, response);
    filterChain.doFilter(request, response);
  } catch (InvalidSubjectException e) {
    createAndSendFailure(e, response, HttpServletResponse.SC_UNAUTHORIZED, badCredentialsMessage);
  }
}
origin: com.atlassian.plugins/atlassian-connect-server-core

private void impersonateSubject(FilterChain filterChain, HttpServletRequest request, HttpServletResponse response, UserProfile userProfile) throws IOException, ServletException {
  // Products use the username to set the authentication context.
  SimplePrincipal principal = new SimplePrincipal(userProfile.getUsername());
  final Authenticator.Result authenticationResult = new Authenticator.Result.Success(createMessage("Successful three-legged-auth"), principal);
  authenticationListener.authenticationSuccess(authenticationResult, request, response);
  filterChain.doFilter(request, response);
}
origin: com.atlassian.plugins/atlassian-connect-core

private void actAsAddonUser(FilterChain filterChain, HttpServletRequest request, HttpServletResponse response, String addonKey) throws IOException, ServletException {
  try {
    final Principal principal = getPrincipal(addonKey);
    final Authenticator.Result authenticationResult = new Authenticator.Result.Success(createMessage("Successful two-legged-auth"), principal);
    authenticationListener.authenticationSuccess(authenticationResult, request, response);
    filterChain.doFilter(request, response);
  } catch (InvalidSubjectException e) {
    createAndSendFailure(e, response, HttpServletResponse.SC_UNAUTHORIZED, i18nResolver.getText(BAD_CREDENTIALS_KEY));
  }
}
origin: com.atlassian.plugins/atlassian-connect-server-core

  authenticationListener.authenticationSuccess(result, request, response);
  return true;
case NO_ATTEMPT:
origin: com.atlassian.plugins/oauth2

case SUCCESS:
  authenticationListener.authenticationSuccess(result, request, response);
  authenticationSuccessListener.authenticationSuccess(result.getPrincipal(), request, response);
  return true;
origin: com.atlassian.oauth/atlassian-oauth-service-provider-plugin

authenticationListener.authenticationSuccess(result, request, response);
com.atlassian.sal.api.authAuthenticationListenerauthenticationSuccess

Popular methods of AuthenticationListener

  • authenticationFailure
  • authenticationError
  • authenticationNotAttempted

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
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