Package org.ngengine.auth
Class Nip46AuthStrategy
java.lang.Object
org.ngengine.auth.Nip46AuthStrategy
- All Implemented Interfaces:
Savable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected org.ngengine.nostr4j.keypair.NostrKeyPairprotected Durationprotected org.ngengine.nostr4j.nip46.Nip46AppMetadataprotected Collection<String> protected Duration -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNip46AuthStrategy(Collection<String> relays) Nip46AuthStrategy(Collection<String> relays, org.ngengine.nostr4j.keypair.NostrKeyPair appKeyPair) -
Method Summary
Modifier and TypeMethodDescriptionorg.ngengine.nostr4j.keypair.NostrKeyPairorg.ngengine.nostr4j.nip46.Nip46AppMetadatabooleanbooleanvoidread(JmeImporter im) setChallengeTimeout(Duration timeout) setMetadata(org.ngengine.nostr4j.nip46.Nip46AppMetadata metadata) setTimeout(Duration timeout) voidwrite(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(Collection<String> relays, org.ngengine.nostr4j.keypair.NostrKeyPair appKeyPair) -
Nip46AuthStrategy
-
Nip46AuthStrategy
protected Nip46AuthStrategy()
-
-
Method Details
-
setTimeout
-
setChallengeTimeout
-
getChallengeTimeout
-
getTimeout
-
withBunkerFlow
-
withNostrConnectFlow
-
withoutBunkerFlow
-
withoutNostrConnectFlow
-
isAllowNostrConnect
public boolean isAllowNostrConnect() -
isAllowBunker
public boolean isAllowBunker() -
setMetadata
-
getMetadata
public org.ngengine.nostr4j.nip46.Nip46AppMetadata getMetadata() -
getRelays
-
getAppKeyPair
public org.ngengine.nostr4j.keypair.NostrKeyPair getAppKeyPair() -
write
- Specified by:
writein interfaceSavable- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Throws:
IOException
-