Class NostrRTCSignal
java.lang.Object
org.ngengine.nostr4j.rtc.signal.NostrRTCSignal
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NostrRTCAnswerSignal, NostrRTCConnectSignal, NostrRTCDisconnectSignal, NostrRTCOfferSignal, NostrRTCRouteSignal
A signal for the RTC handshake.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNostrRTCSignal(NostrSigner localSigner, String type, NostrKeyPair roomKeyPair, SignedNostrEvent event) protectedNostrRTCSignal(NostrSigner localSigner, String type, NostrKeyPair roomKeyPair, NostrRTCPeer peer) -
Method Summary
Modifier and TypeMethodDescriptionvoidawait()protected abstract org.ngengine.platform.AsyncTask<UnsignedNostrEvent> computeEvent(UnsignedNostrEvent event) static Stringprotected final org.ngengine.platform.AsyncTask<String> decrypt(String content, NostrPublicKey sender) protected final org.ngengine.platform.AsyncTask<String> encrypt(String content, NostrPublicKey recipient) getPeer()protected abstract booleanprotected booleanrequiresRoomProof(String type) protected org.ngengine.platform.AsyncTask<SignedNostrEvent> signForRoom(UnsignedNostrEvent event) final org.ngengine.platform.AsyncTask<SignedNostrEvent> toEvent(NostrPublicKey toUser) toString()protected booleanverifyRoomProof(NostrPublicKey roomPubkey, SignedNostrEvent event)
-
Constructor Details
-
NostrRTCSignal
protected NostrRTCSignal(NostrSigner localSigner, String type, NostrKeyPair roomKeyPair, NostrRTCPeer peer) -
NostrRTCSignal
protected NostrRTCSignal(NostrSigner localSigner, String type, NostrKeyPair roomKeyPair, SignedNostrEvent event)
-
-
Method Details
-
getRoomPubkey
-
getPeer
-
encrypt
protected final org.ngengine.platform.AsyncTask<String> encrypt(String content, NostrPublicKey recipient) -
decrypt
protected final org.ngengine.platform.AsyncTask<String> decrypt(String content, NostrPublicKey sender) -
toString
-
computeEvent
protected abstract org.ngengine.platform.AsyncTask<UnsignedNostrEvent> computeEvent(UnsignedNostrEvent event) -
toEvent
public final org.ngengine.platform.AsyncTask<SignedNostrEvent> toEvent(@Nullable NostrPublicKey toUser) -
signForRoom
-
verifyRoomProof
-
computeRoomProofChallenge
-
requiresRoomProof
-
requireRoomSignature
protected abstract boolean requireRoomSignature() -
await
public void await()
-