public interface

StashAuthenticationContext

com.atlassian.stash.user.StashAuthenticationContext

Class Overview

Obtains the current user logged in Stash.

Summary

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

Public Methods

@Nullable public StashUser getCurrentUser ()

Returns
  • the current user or null if anonymous

public boolean isAuthenticated ()

Returns
  • true if the current request is authenticated