Class NostrconnectUrl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class NostrconnectUrl
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    See Also:
    Serialized Form
    • Field Detail

      • relays

        public final java.util.Collection<java.lang.String> relays
      • secret

        public final java.lang.String secret
    • Constructor Detail

      • NostrconnectUrl

        public NostrconnectUrl​(NostrPublicKey clientPubKey,
                               java.util.Collection<java.lang.String> relays,
                               java.lang.String secret,
                               Nip46AppMetadata appMetadata)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • clone

        public NostrconnectUrl clone()
        Overrides:
        clone in class java.lang.Object
      • parse

        public static NostrconnectUrl parse​(java.lang.String url)
                                     throws java.net.MalformedURLException,
                                            java.net.URISyntaxException,
                                            java.io.UnsupportedEncodingException
        Throws:
        java.net.MalformedURLException
        java.net.URISyntaxException
        java.io.UnsupportedEncodingException