Class SaslAuthenticationDataProvider

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.pulsar.client.api.AuthenticationDataProvider

    public class SaslAuthenticationDataProvider
    extends java.lang.Object
    implements org.apache.pulsar.client.api.AuthenticationDataProvider
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.pulsar.common.api.AuthData authenticate​(org.apache.pulsar.common.api.AuthData commandData)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.String>> getHttpHeaders()  
      boolean hasDataForHttp()  
      boolean hasDataFromCommand()  
      • 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.AuthenticationDataProvider

        getCommandData, getHttpAuthType, getTlsCerificateFilePath, getTlsCertificates, getTlsKeyStoreParams, getTlsPrivateKey, getTlsPrivateKeyFilePath, getTlsTrustStoreStream, hasDataForTls
    • Constructor Detail

      • SaslAuthenticationDataProvider

        public SaslAuthenticationDataProvider​(PulsarSaslClient pulsarSaslClient)
    • Method Detail

      • hasDataFromCommand

        public boolean hasDataFromCommand()
        Specified by:
        hasDataFromCommand in interface org.apache.pulsar.client.api.AuthenticationDataProvider
      • authenticate

        public org.apache.pulsar.common.api.AuthData authenticate​(org.apache.pulsar.common.api.AuthData commandData)
                                                           throws javax.naming.AuthenticationException
        Specified by:
        authenticate in interface org.apache.pulsar.client.api.AuthenticationDataProvider
        Throws:
        javax.naming.AuthenticationException
      • hasDataForHttp

        public boolean hasDataForHttp()
        Specified by:
        hasDataForHttp in interface org.apache.pulsar.client.api.AuthenticationDataProvider
      • getHttpHeaders

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.String>> getHttpHeaders()
                                                                                                   throws java.lang.Exception
        Specified by:
        getHttpHeaders in interface org.apache.pulsar.client.api.AuthenticationDataProvider
        Throws:
        java.lang.Exception