Interface WingsAuthTypeParser

  • All Implemented Interfaces:

    
    public interface WingsAuthTypeParser
    
                        
    Since:

    2021-02-08

    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 Enum<out Object> parse(String authType) Convert the string alias to enum, return Null.
      abstract String parse(Enum<out Object> authType) Convert the enum to string alias, throws if fail
      abstract 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
    • Constructor Detail

    • Method Detail

      • parse

        @NotNull() abstract Enum<out Object> parse(String authType)

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

        Parameters:
        authType - authType
        Returns:

        strong type of authType

      • parse

        @NotNull() abstract String parse(Enum<out Object> authType)

        Convert the enum to string alias, throws if fail

        Parameters:
        authType - authType
        Returns:

        string alias