Class AuthStateBuilder
-
- All Implemented Interfaces:
public class AuthStateBuilderConstruct and parse meaningful state
- Since:
2021-07-11
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringParamStatepublic final static StringKeyStateArrpublic final static StringKeyAuthZonepublic final static TypeParamType
-
Constructor Summary
Constructors Constructor Description AuthStateBuilder(Map<String, String> safeState)
-
Method Summary
Modifier and Type Method Description StringbuildState(HttpServletRequest request)Map<String, Array<String>>parseParam(HttpServletRequest request)StringparseState(HttpServletRequest request)parse client state, then merge them to safe format. e.g. given, (1) .safe-state[/order-list]={1}/#{0} (2) GET ?state=/order-list&state=http://localhost%3A8080 then state=['/order-list', 'http://localhost:8080'] and parseState returns http://localhost:8080/#/order-listStringparseAuthZone(HttpServletRequest request)voidsetAes(Aes aes)-
-
Method Detail
-
buildState
@NotNull() String buildState(HttpServletRequest request)
-
parseParam
@NotNull() Map<String, Array<String>> parseParam(HttpServletRequest request)
-
parseState
@NotNull() String parseState(HttpServletRequest request)
parse client state, then merge them to safe format. e.g. given, (1) .safe-state[/order-list]={1}/#{0} (2) GET ?state=/order-list&state=http://localhost%3A8080 then state=['/order-list', 'http://localhost:8080'] and parseState returns http://localhost:8080/#/order-list
-
parseAuthZone
@NotNull() String parseAuthZone(HttpServletRequest request)
-
setAes
void setAes(Aes aes)
-
-
-
-