Class MemoryUserDetailsCombo
-
- All Implemented Interfaces:
-
org.springframework.core.Ordered,pro.fessional.wings.slardar.security.impl.ComboWingsUserDetailsService.Combo
public class MemoryUserDetailsCombo extends DefaultUserDetailsCombo
Predefined user auth info is loaded into memory by config, etc. If autoEncode and password is not in `{` and `}` proxy mode, it is auto encrypted. Notes: (1) Make sure the mapping of username and userid, no verification here. (2) Verify without salt, even if `passslat` exists in db.- Since:
2021-06-03
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static intORDERpublic intorderpublic Set<Enum<out Object>>autoRegisterTypepublic final static intHIGHEST_PRECEDENCEpublic final static intLOWEST_PRECEDENCE
-
Constructor Summary
Constructors Constructor Description MemoryUserDetailsCombo()
-
Method Summary
Modifier and Type Method Description voidaddUser(@NotNull() WarlockAuthnService.Details dtl)Add a memory user, AuthType=null for all types voidaddUser(long userId, Enum<out Object> authType, @NotNull() String username, @NotNull() String password)voiddelUser(@NotNull() String username)voiddelUser(@NotNull() String username, Enum<out Object> authType)WarlockAuthnService.DetailsdoLoad(String username, @NotNull() Enum<out Object> authType, @Nullable() WingsAuthDetails authDetail)Load details -
Methods inherited from class pro.fessional.wings.warlock.service.auth.impl.DefaultUserDetailsCombo
asAuthed, getAutoRegisterType, getOrder, getWarlockAuthnService, getWarlockAuthzService, loadOrNull, setAutoRegisterType, setOrder, setWarlockAuthnService, setWarlockAuthzService -
Methods inherited from class pro.fessional.wings.slardar.security.impl.ComboWingsUserDetailsService.Combo
loadOrNull, postAudit -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
addUser
void addUser(@NotNull() WarlockAuthnService.Details dtl)
Add a memory user, AuthType=null for all types
- Parameters:
dtl- can be modified, e.g.
-
addUser
void addUser(long userId, Enum<out Object> authType, @NotNull() String username, @NotNull() String password)
-
doLoad
WarlockAuthnService.Details doLoad(String username, @NotNull() Enum<out Object> authType, @Nullable() WingsAuthDetails authDetail)
Load details
-
-
-
-