Class SASL


  • public class SASL
    extends Object
    • Constructor Detail

      • SASL

        public SASL()
        Create a new SASL auth handler. Defaults to disable file descriptor passing.
      • SASL

        public SASL​(boolean _hasFileDescriptorSupport)
        Create a new SASL auth handler.
        Parameters:
        _hasFileDescriptorSupport - true to support file descriptor passing (usually only works with UNIX_SOCKET).
    • Method Detail

      • doResponse

        public org.freedesktop.dbus.connections.SASL.SaslResult doResponse​(int _auth,
                                                                           String _uid,
                                                                           String _kernelUid,
                                                                           SASL.Command _c)
      • getTypes

        public String[] getTypes​(int types)
      • auth

        public boolean auth​(SASL.SaslMode mode,
                            int types,
                            String guid,
                            OutputStream out,
                            InputStream in,
                            Socket us)
                     throws IOException
        performs SASL auth on the given streams. Mode selects whether to run as a SASL server or client. Types is a bitmask of the available auth types.
        Parameters:
        mode - mode
        types - types
        guid - guid
        out - out
        in - in
        us - us
        Returns:
        true if the auth was successful and false if it failed.
        Throws:
        IOException - on failure
      • isFileDescriptorSupported

        public boolean isFileDescriptorSupported()