Class DefaultWingsAuthTypeParser

  • All Implemented Interfaces:
    pro.fessional.wings.slardar.security.WingsAuthTypeParser

    
    public class DefaultWingsAuthTypeParser
     implements WingsAuthTypeParser
                        

    Construct the one-to-one (except for the default value) mapping with HashMap.

    Since:

    2021-02-22

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Enum<out Object> parse(String at) Convert the string alias to enum, return Null.
      String parse(Enum<out Object> at) Convert the enum to string alias, throws if fail
      Map<String, Enum<out Object>> types() Get all the string alias and enum one-to-one mapping
      • Methods inherited from class java.lang.Object

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

      • parse

        @NotNull() Enum<out Object> parse(String at)

        Convert the string alias to enum, return Null.Enm instead of null

        Returns:

        strong type of authType

      • parse

        @NotNull() String parse(Enum<out Object> at)

        Convert the enum to string alias, throws if fail

        Returns:

        string alias