src/net/java/sip/communicator/impl/protocol/jabber/OperationSetChangePasswordJabberImpl.java
/**
     * Changes the jabber account password of protocolProvider to newPass.
     * @param newPass the new password.
     * @throws IllegalStateException if the account is not registered.
     * @throws OperationFailedException if the server does not support password
     * changes.
     */
Changes the jabber account password of protocolProvider to newPass.
@param newPass the new password.
@throws IllegalStateException if the account is not registered.
@throws OperationFailedException if the server does not support password
changes.
Changes the jabber account password of protocolProvider to newPass . @param newPass the new password . @throws IllegalStateException if the account is not registered . @throws OperationFailedException if the server does not support password changes .
public void changePassword(String newPass)
            throws IllegalStateException, OperationFailedException
    {
        org.jivesoftware.smackx.iqregister.AccountManager accountManager
                = org.jivesoftware.smackx.iqregister.AccountManager.getInstance(
                                        protocolProvider.getConnection());
        try
        {
            accountManager.changePassword(newPass);
        }
        catch (XMPPException
            | InterruptedException
            | NoResponseException
            | NotConnectedException e)
        {
            if(logger.isInfoEnabled())
            {
                logger.info("Tried to change jabber password, but the server "
                        + "does not support inband password changes", e);
            }
            throw new OperationFailedException("In-band password changes not"
                    + " supported",
                    OperationFailedException.NOT_SUPPORTED_OPERATION,
                    e);
        }
    }
public void changePassword ( String newPass ) throws IllegalStateException , OperationFailedException { org . jivesoftware . smackx . iqregister . AccountManager accountManager = org . jivesoftware . smackx . iqregister . AccountManager . getInstance ( protocolProvider . getConnection ( ) ) ; try { accountManager . changePassword ( newPass ) ; } catch ( XMPPException | InterruptedException | NoResponseException | NotConnectedException e ) { if ( logger . isInfoEnabled ( ) ) { logger . info ( "Tried to change jabber password, but the server " + "does not support inband password changes" , e ) ; } throw new OperationFailedException ( "In-band password changes not" + " supported" , OperationFailedException . NOT_SUPPORTED_OPERATION , e ) ; } }
Changes the jabber account password of protocolProvider to newPass.
Changes the jabber account password of protocolProvider to newPass .