Interface RestAuthenticationContext

All Known Implementing Classes:
RestAuthenticationContextImpl

public interface RestAuthenticationContext
An authentication context to retrieve the principal and authentication status. This is result of REST v2 migration, which didn't offer a replacement for the old com.atlassian.plugins.rest.common.security.AuthenticationContext.
Since:
10.0
  • Method Details

    • getPrincipal

      Principal getPrincipal()
      Returns:
      the authenticated principal, null if none is authenticated.
    • isAuthenticated

      boolean isAuthenticated()
      Returns:
      true if the principal is authenticated, false otherwise.