如何实施: 公共类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;
}