59 lines
1.4 KiB
Java
59 lines
1.4 KiB
Java
package im.rosetta.event.events.handshake;
|
|
|
|
import im.rosetta.client.tags.ECIAuthentificate;
|
|
import im.rosetta.client.tags.ECIDevice;
|
|
import im.rosetta.event.Cancelable;
|
|
import im.rosetta.event.Event;
|
|
|
|
import io.orprotocol.client.Client;
|
|
|
|
/**
|
|
* Базовое событие хэндшейка
|
|
*/
|
|
public class BaseHandshakeEvent extends Event implements Cancelable {
|
|
|
|
private String publicKey;
|
|
private String privateKey;
|
|
private ECIDevice device;
|
|
private ECIAuthentificate eciAuthentificate;
|
|
private Client client;
|
|
private boolean canceled = false;
|
|
|
|
public BaseHandshakeEvent(String publicKey, String privateKey, ECIDevice device, ECIAuthentificate eciAuthentificate, Client client) {
|
|
this.publicKey = publicKey;
|
|
this.privateKey = privateKey;
|
|
this.device = device;
|
|
this.eciAuthentificate = eciAuthentificate;
|
|
this.client = client;
|
|
}
|
|
|
|
public String getPublicKey() {
|
|
return publicKey;
|
|
}
|
|
|
|
public String getPrivateKey() {
|
|
return privateKey;
|
|
}
|
|
|
|
public ECIDevice getDevice() {
|
|
return device;
|
|
}
|
|
|
|
public ECIAuthentificate getEciAuthentificate() {
|
|
return eciAuthentificate;
|
|
}
|
|
|
|
public Client getClient() {
|
|
return client;
|
|
}
|
|
|
|
public void setCanceled(boolean canceled) {
|
|
this.canceled = canceled;
|
|
}
|
|
|
|
public boolean isCanceled() {
|
|
return canceled;
|
|
}
|
|
|
|
}
|