Package org.ngengine.auth
Class Nip46AuthStrategy
java.lang.Object
org.ngengine.auth.Nip46AuthStrategy
- All Implemented Interfaces:
Savable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.ngengine.nostr4j.keypair.NostrKeyPair
org.ngengine.nostr4j.nip46.Nip46AppMetadata
boolean
boolean
void
read
(JmeImporter im) setChallengeTimeout
(Duration timeout) setMetadata
(org.ngengine.nostr4j.nip46.Nip46AppMetadata metadata) setTimeout
(Duration timeout) void
write
(JmeExporter ex)
-
Field Details
-
relays
-
metadata
protected org.ngengine.nostr4j.nip46.Nip46AppMetadata metadata -
appKeyPair
protected org.ngengine.nostr4j.keypair.NostrKeyPair appKeyPair -
allowNostrConnect
protected boolean allowNostrConnect -
allowBunker
protected boolean allowBunker -
timeout
-
challengeTimeout
-
-
Constructor Details
-
Nip46AuthStrategy
public Nip46AuthStrategy(org.ngengine.nostr4j.keypair.NostrKeyPair appKeyPair) -
Nip46AuthStrategy
public Nip46AuthStrategy()
-
-
Method Details
-
setTimeout
-
setChallengeTimeout
-
getChallengeTimeout
-
getTimeout
-
withBunkerFlow
-
withNostrConnectFlow
-
withoutBunkerFlow
-
withoutNostrConnectFlow
-
isAllowNostrConnect
public boolean isAllowNostrConnect() -
isAllowBunker
public boolean isAllowBunker() -
setRelays
-
setMetadata
-
getMetadata
public org.ngengine.nostr4j.nip46.Nip46AppMetadata getMetadata() -
getRelays
-
getAppKeyPair
public org.ngengine.nostr4j.keypair.NostrKeyPair getAppKeyPair() -
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-