Class AuthenticationUtil

java.lang.Object
org.apache.pulsar.client.impl.AuthenticationUtil

public class AuthenticationUtil extends Object
  • Constructor Details

    • AuthenticationUtil

      public AuthenticationUtil()
  • Method Details

    • configureFromJsonString

      public static Map<String,String> configureFromJsonString(String authParamsString) throws IOException
      Throws:
      IOException
    • configureFromPulsar1AuthParamString

      public static Map<String,String> configureFromPulsar1AuthParamString(String authParamsString)
    • create

      public static final org.apache.pulsar.client.api.Authentication create(String authPluginClassName, String authParamsString) throws org.apache.pulsar.client.api.PulsarClientException.UnsupportedAuthenticationException
      Create an instance of the Authentication-Plugin.
      Parameters:
      authPluginClassName - name of the Authentication-Plugin you want to use
      authParamsString - string which represents parameters for the Authentication-Plugin, e.g., "key1:val1,key2:val2"
      Returns:
      instance of the Authentication-Plugin
      Throws:
      org.apache.pulsar.client.api.PulsarClientException.UnsupportedAuthenticationException
    • create

      public static final org.apache.pulsar.client.api.Authentication create(String authPluginClassName, Map<String,String> authParams) throws org.apache.pulsar.client.api.PulsarClientException.UnsupportedAuthenticationException
      Create an instance of the Authentication-Plugin.
      Parameters:
      authPluginClassName - name of the Authentication-Plugin you want to use
      authParams - map which represents parameters for the Authentication-Plugin
      Returns:
      instance of the Authentication-Plugin
      Throws:
      org.apache.pulsar.client.api.PulsarClientException.UnsupportedAuthenticationException