Class AuthStateBuilder

  • All Implemented Interfaces:

    
    public class AuthStateBuilder
    
                        

    Construct and parse meaningful state

    Since:

    2021-07-11

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String buildState(HttpServletRequest request)
      Map<String, Array<String>> parseParam(HttpServletRequest request)
      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
      
      String parseAuthZone(HttpServletRequest request)
      void setAes(Aes aes)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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
        
      • setAes

         void setAes(Aes aes)