Interface ComboWingsUserDetailsService.Combo
-
- All Implemented Interfaces:
-
org.springframework.core.Ordered
public interface ComboWingsUserDetailsService.Combo<T extends UserDetails> implements Ordered
-
-
Method Summary
Modifier and Type Method Description TloadOrNull(String username, @NotNull() Enum<out Object> authType, @Nullable() WingsAuthDetails authDetail)Do not accept or can not be constructed to return null. UserDetailspostAudit(@NotNull() UserDetails useDetail, String username, @NotNull() Enum<out Object> authType, @Nullable() WingsAuthDetails authDetail)Post-audit the loaded useDetail, returning null equals `loadOrNull` null -
-
Method Detail
-
loadOrNull
@Nullable() T loadOrNull(String username, @NotNull() Enum<out Object> authType, @Nullable() WingsAuthDetails authDetail)
Do not accept or can not be constructed to return null. Non-null means the loading is successful, can be used to verify.
- Parameters:
username- Unique Key under authType.authType- null by defaultauthDetail- Authentication.- Returns:
UserDetails
-
postAudit
@Nullable() UserDetails postAudit(@NotNull() UserDetails useDetail, String username, @NotNull() Enum<out Object> authType, @Nullable() WingsAuthDetails authDetail)
Post-audit the loaded useDetail, returning null equals `loadOrNull` null
- Parameters:
useDetail- loaded useDetailusername- original usernameauthType- original authTypeauthDetail- original authDetail- Returns:
audited useDetail
-
-
-
-