Interface WingsAuthTypeParser
-
- All Implemented Interfaces:
public interface WingsAuthTypeParser- Since:
2021-02-08
trydofor
-
-
Method Summary
Modifier and Type Method Description abstract Enum<out Object>parse(String authType)Convert the string alias to enum, return Null. abstract Stringparse(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 -
-
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
-
-
-
-