src/net/java/sip/communicator/impl/protocol/jabber/LoginByClientCertificateStrategy.java
/**
     * Performs the login on the XMPP connection using the SASL EXTERNAL
     * mechanism.
     *
     * @param connection The connection on which the login is performed.
     * @param jid the full JID to use
     * @return true when the login succeeded, false when the certificate wasn't
     * accepted.
     * @throws XMPPException
     */
Performs the login on the XMPP connection using the SASL EXTERNAL
mechanism.

@param connection The connection on which the login is performed.
@param jid the full JID to use
@return true when the login succeeded, false when the certificate wasn't
accepted.
Performs the login on the XMPP connection using the SASL EXTERNAL mechanism . @param connection The connection on which the login is performed . @param jid the full JID to use @return true when the login succeeded false when the certificate wasn ' t accepted .
@Override
    public boolean login(AbstractXMPPConnection connection, EntityFullJid jid)
        throws XMPPException, InterruptedException, IOException, SmackException
    {
        try
        {
            connection.login("", "", jid.getResourceOrEmpty());
            return true;
        }
        catch (XMPPException ex)
        {
            if (ex.getMessage().contains("EXTERNAL failed: not-authorized"))
            {
                logger.error("Certificate login failed", ex);
                return false;
            }
            throw ex;
        }
    }
@ Override public boolean login ( AbstractXMPPConnection connection , EntityFullJid jid ) throws XMPPException , InterruptedException , IOException , SmackException { try { connection . login ( "" , "" , jid . getResourceOrEmpty ( ) ) ; return true ; } catch ( XMPPException ex ) { if ( ex . getMessage ( ) . contains ( "EXTERNAL failed: not-authorized" ) ) { logger . error ( "Certificate login failed" , ex ) ; return false ; } throw ex ; } }
Performs the login on the XMPP connection using the SASL EXTERNAL
 mechanism.
Performs the login on the XMPP connection using the SASL EXTERNAL mechanism .
// user/password MUST be empty. In fact they shouldn't be // necessary at all because the user name is derived from the // client certificate.