public interface

AuthenticationContext

com.atlassian.bitbucket.auth.AuthenticationContext

Class Overview

A context for accessing the currently-authenticated user.

Summary

Public Methods
@Nullable ApplicationUser getCurrentUser()
@Nonnull Map<String, Serializable> getProperties()
boolean isAuthenticated()

Public Methods

@Nullable public ApplicationUser getCurrentUser ()

Returns
  • the current user or null if anonymous

@Nonnull public Map<String, Serializable> getProperties ()

Returns
  • the authentication properties provided during authentication; empty map if not authenticated

public boolean isAuthenticated ()

Returns
  • true if the current request is authenticated