Class AuthenticationBasic

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Serializable, java.lang.AutoCloseable, org.apache.pulsar.client.api.Authentication, org.apache.pulsar.client.api.EncodedAuthenticationParameterSupport

    public class AuthenticationBasic
    extends java.lang.Object
    implements org.apache.pulsar.client.api.Authentication, org.apache.pulsar.client.api.EncodedAuthenticationParameterSupport
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void configure​(java.lang.String encodedAuthParamString)  
      void configure​(java.util.Map<java.lang.String,​java.lang.String> authParams)  
      org.apache.pulsar.client.api.AuthenticationDataProvider getAuthData()  
      java.lang.String getAuthMethodName()  
      void start()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.pulsar.client.api.Authentication

        authenticationStage, getAuthData, newRequestHeader
    • Constructor Detail

      • AuthenticationBasic

        public AuthenticationBasic()
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • getAuthMethodName

        public java.lang.String getAuthMethodName()
        Specified by:
        getAuthMethodName in interface org.apache.pulsar.client.api.Authentication
      • getAuthData

        public org.apache.pulsar.client.api.AuthenticationDataProvider getAuthData()
                                                                            throws org.apache.pulsar.client.api.PulsarClientException
        Specified by:
        getAuthData in interface org.apache.pulsar.client.api.Authentication
        Throws:
        org.apache.pulsar.client.api.PulsarClientException
      • configure

        public void configure​(java.util.Map<java.lang.String,​java.lang.String> authParams)
        Specified by:
        configure in interface org.apache.pulsar.client.api.Authentication
      • configure

        public void configure​(java.lang.String encodedAuthParamString)
        Specified by:
        configure in interface org.apache.pulsar.client.api.EncodedAuthenticationParameterSupport
      • start

        public void start()
                   throws org.apache.pulsar.client.api.PulsarClientException
        Specified by:
        start in interface org.apache.pulsar.client.api.Authentication
        Throws:
        org.apache.pulsar.client.api.PulsarClientException