public interface

AuthenticationContext

com.atlassian.bitbucket.auth.AuthenticationContext

Class Overview

A context for accessing the currently-authenticated user.

Summary

Public Methods
@Nullable ApplicationUser getCurrentUser()
boolean isAuthenticated()

Public Methods

@Nullable public ApplicationUser getCurrentUser ()

Returns
  • the current user or null if anonymous

public boolean isAuthenticated ()

Returns
  • true if the current request is authenticated