Interface AuthenticationOperations<A extends org.springframework.security.core.Authentication>

Type Parameters:
A - the type parameter
All Known Implementing Classes:
AuthenticationTemplate

public interface AuthenticationOperations<A extends org.springframework.security.core.Authentication>
The authentication operations.
Author:
Christian Bremer
  • Method Details

    • doWithAuthentication

      <R> @Nullable R doWithAuthentication(@NonNull Function<A,R> function)
      Do with authentication.
      Type Parameters:
      R - the type parameter
      Parameters:
      function - the function
      Returns:
      the r
    • doWithOptionalAuthentication

      <R> @Nullable R doWithOptionalAuthentication(@NonNull Function<@Nullable A,R> function)
      Do with optional authentication r.
      Type Parameters:
      R - the type parameter
      Parameters:
      function - the function
      Returns:
      the r
    • responseWithAuthentication

      <R> @NonNull org.springframework.http.ResponseEntity<R> responseWithAuthentication(@NonNull Function<A,R> function)
      Response with authentication.
      Type Parameters:
      R - the type parameter
      Parameters:
      function - the function
      Returns:
      the response entity
    • responseWithOptionalAuthentication

      <R> @NonNull org.springframework.http.ResponseEntity<R> responseWithOptionalAuthentication(@NonNull Function<@Nullable A,R> function)
      Response with optional authentication response entity.
      Type Parameters:
      R - the type parameter
      Parameters:
      function - the function
      Returns:
      the response entity