Class BasicAuth

  • All Implemented Interfaces:

    @Serializable() 
    public final class BasicAuth
    extends Auth
                        

    Basic authentication configuration

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String type
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicAuth(String type)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getType() basic authentication type
      AuthMethod getAuthMethod() Get the authentication method type.
      String toString() Convert the information into a string format
      final static BasicAuth createBasicAuthFromJsonString(String str) Parses the string manually, since it might come from discovery service or other sources, the properties in json might not be the same order as what serializer does.
      final static BasicAuth createBasicAuthFromMap(Map<String, String> map)
      • Methods inherited from class java.lang.Object

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

      • BasicAuth

        BasicAuth(String type)
    • Method Detail

      • getType

         final String getType()

        basic authentication type

      • toString

         String toString()

        Convert the information into a string format

      • createBasicAuthFromJsonString

         final static BasicAuth createBasicAuthFromJsonString(String str)

        Parses the string manually, since it might come from discovery service or other sources, the properties in json might not be the same order as what serializer does.