如何使用smack 4.1.4在Android中实现SASLMechanism

时间:2016-03-30 09:15:50

标签: android

如何实施: 公共类SASLXFacebookPlatformMechanism扩展了SASLMechanism {     private static final String NAME =“X-FACEBOOK-PLATFORM”;

private String apiKey = "";
private String accessToken = " ";
public SASLXFacebookPlatformMechanism(SASLAuthentication saslAuthentication) {
    super();
}

@Override
protected void authenticateInternal(CallbackHandler cbh) throws SmackException {
}

@Override
protected byte[] getAuthenticationText() throws SmackException {
    return null;

}

@Override
public String getName() {
    return null;
}

@Override
public int getPriority() {
    return 0;
}

@Override
public void checkIfSuccessfulOrThrow() throws SmackException {

}

@Override
protected SASLMechanism newInstance() {
    return null;
}

0 个答案:

没有答案