@Test void testToString() { Key key = new Key("testKey", "testSecret"); String expected = "Key [name=testKey, secret=testSecret]"; assertEquals(expected, key.toString()); }
@Override public String toString() { return new StringJoiner(", ", "Key [", "]") .add(String.format("name=%s", name)) .add(String.format("secret=%s", secret)) .toString(); }
Key implements Principal { @Override public String toString() { return new StringJoiner(", ", "Key [", "]") .add(String.format("name=%s", name)) .add(String.format("secret=%s", secret)) .toString(); } }
Key implements Principal { @Override public String toString() { return new StringJoiner(", ", "Key [", "]") .add(String.format("name=%s", name)) .add(String.format("secret=%s", secret)) .toString(); } Key(@JsonProperty("application") String name,
             @JsonProperty("secret") String secret); }
Key implements Principal { @Override public String toString() { return new StringJoiner(", ", "Key [", "]") .add(String.format("name=%s", name)) .add(String.format("secret=%s", secret)) .toString(); } Key(@JsonProperty("application") String name,
             @JsonProperty("secret") String secret); String getName(); String getSecret(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
Key implements Principal { @Override public String toString() { return new StringJoiner(", ", "Key [", "]") .add(String.format("name=%s", name)) .add(String.format("secret=%s", secret)) .toString(); } Key(@JsonProperty("application") String name,
             @JsonProperty("secret") String secret); String getName(); String getSecret(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }