org.littleshoot.commom.xmpp
Class PasswordCredentials

java.lang.Object
  extended by org.littleshoot.commom.xmpp.PasswordCredentials
All Implemented Interfaces:
XmppCredentials

public class PasswordCredentials
extends Object
implements XmppCredentials


Constructor Summary
PasswordCredentials(String username, String password)
           
PasswordCredentials(String username, String password, String resource)
           
 
Method Summary
 org.jivesoftware.smack.XMPPConnection createConnection(org.jivesoftware.smack.ConnectionConfiguration config)
           
 String getKey()
           
 String getUsername()
           
 void login(org.jivesoftware.smack.XMPPConnection conn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordCredentials

public PasswordCredentials(String username,
                           String password)

PasswordCredentials

public PasswordCredentials(String username,
                           String password,
                           String resource)
Method Detail

getUsername

public String getUsername()
Specified by:
getUsername in interface XmppCredentials

getKey

public String getKey()
Specified by:
getKey in interface XmppCredentials

createConnection

public org.jivesoftware.smack.XMPPConnection createConnection(org.jivesoftware.smack.ConnectionConfiguration config)
Specified by:
createConnection in interface XmppCredentials

login

public void login(org.jivesoftware.smack.XMPPConnection conn)
           throws org.jivesoftware.smack.XMPPException
Specified by:
login in interface XmppCredentials
Throws:
org.jivesoftware.smack.XMPPException


Copyright © 2014 LittleShoot. All Rights Reserved.