final IPacket auth = new Packet("auth", XMLNS).With("mechanism", "ANONYMOUS");
return auth;
}
private IPacket createPlainAuthorization(final AuthorizationTransaction authorizationTransaction) {
final IPacket auth = new Packet("auth", XMLNS).With("mechanism", "PLAIN");
final String encoded = encode(authorizationTransaction.uri.getHost(), authorizationTransaction.uri.getNode(),
authorizationTransaction.getPassword());
auth.setText(encoded);
return auth;
}