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 Summary
Modifier and TypeMethodDescription<R> @Nullable RdoWithAuthentication(@NonNull Function<A, R> function) Do with authentication.<R> @Nullable RdoWithOptionalAuthentication(@NonNull Function<@Nullable A, R> function) Do with optional authentication r.<R> @NonNull org.springframework.http.ResponseEntity<R> responseWithAuthentication(@NonNull Function<A, R> function) Response with authentication.<R> @NonNull org.springframework.http.ResponseEntity<R> responseWithOptionalAuthentication(@NonNull Function<@Nullable A, R> function) Response with optional authentication response entity.
-
Method Details
-
doWithAuthentication
Do with authentication.- Type Parameters:
R- the type parameter- Parameters:
function- the function- Returns:
- the r
-
doWithOptionalAuthentication
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
-