Class SASLContext

    • Method Detail

      • createSASLContext

        public static SASLContext createSASLContext​(HashMap<String,​String> saslProps,
                                                    String serverFQDN,
                                                    String mechanism,
                                                    IdentityMapper<?> identityMapper)
                                             throws SaslException
        Instantiate a GSSAPI/DIGEST-MD5 SASL context using the specified parameters.
        Parameters:
        saslProps - The properties to use in creating the SASL server.
        serverFQDN - The fully qualified domain name to use in creating the SASL server.
        mechanism - The SASL mechanism name.
        identityMapper - The identity mapper to use in mapping identities.
        Returns:
        A fully instantiated SASL context to use in processing a SASL bind for the GSSAPI or DIGEST-MD5 mechanisms.
        Throws:
        SaslException - If the SASL server can not be instantiated.
      • run

        public Boolean run()
        The method performs all GSSAPI processing. It is run as the context of the login context performed by the GSSAPI mechanism handler. See comments for processing overview.
        Specified by:
        run in interface PrivilegedExceptionAction<Boolean>
        Returns:
        true if the authentication processing was successful.