@Test void testToString() { Identity identity = Identity.random(); Signature.SecretKey secretKey = Signature.KeyPair.random().secretKey(); Invite invite = new Invite("localhost", 8008, identity, secretKey); assertEquals( "localhost:8008:" + identity.publicKeyAsBase64String() + "." + identity.curveName() + "~" + secretKey.bytes().toBase64String(), invite.toString()); }
@Override public String toString() { return toCanonicalForm(); }
Invite { @Override public String toString() { return toCanonicalForm(); } }
Invite { @Override public String toString() { return toCanonicalForm(); } Invite(String host, int port, Identity identity, Signature.SecretKey secretKey); }
Invite { @Override public String toString() { return toCanonicalForm(); } Invite(String host, int port, Identity identity, Signature.SecretKey secretKey); String host(); int port(); Identity identity(); Signature.SecretKey secretKey(); String toCanonicalForm(); @Override String toString(); }
Invite { @Override public String toString() { return toCanonicalForm(); } Invite(String host, int port, Identity identity, Signature.SecretKey secretKey); String host(); int port(); Identity identity(); Signature.SecretKey secretKey(); String toCanonicalForm(); @Override String toString();  }