Interface SessionTokenEncoder

  • All Implemented Interfaces:

    
    public interface SessionTokenEncoder
    
                        

    encode/deconde between session id and session token

    Since:

    2023-03-30

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String encode(@NotNull() String id, @NotNull() HttpServletRequest request) encode session id to token
      abstract List<String> decode(@NotNull() List<String> tokens, @NotNull() HttpServletRequest request) decode session token to id
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • encode

        @NotNull() abstract String encode(@NotNull() String id, @NotNull() HttpServletRequest request)

        encode session id to token

      • decode

        @NotNull() abstract List<String> decode(@NotNull() List<String> tokens, @NotNull() HttpServletRequest request)

        decode session token to id