Interface ServiceAccountAuthenticationContext


public interface ServiceAccountAuthenticationContext
Service Account implementation of UserService Sets and retrieves the service account from the spring security context, if it exists.
Since:
7.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<com.atlassian.crowd.embedded.api.service.ServiceAccount>
    Gets the current service account from the authentication context.
  • Method Details

    • getCurrentServiceAccount

      Optional<com.atlassian.crowd.embedded.api.service.ServiceAccount> getCurrentServiceAccount()
      Gets the current service account from the authentication context.
      Returns:
      Optional containing the current service account, or empty if none is set