@Test public void testCouldBeTokenNo() { assertFalse(sut.couldBeToken("C/9+GotQ.A+vyWRO34pqEcQ==")); }
public boolean couldBeToken(final String potentialToken) { return TOKEN_PATTERN.matcher(potentialToken).matches(); }
TokenEncoder { public boolean couldBeToken(final String potentialToken) { return TOKEN_PATTERN.matcher(potentialToken).matches(); } }
TokenEncoder { public boolean couldBeToken(final String potentialToken) { return TOKEN_PATTERN.matcher(potentialToken).matches(); } TokenEncoder(final String inAlgorithm); }
TokenEncoder { public boolean couldBeToken(final String potentialToken) { return TOKEN_PATTERN.matcher(potentialToken).matches(); } TokenEncoder(final String inAlgorithm); String encode(final String content, final byte[] keyBytes); boolean couldBeToken(final String potentialToken); String decode(final String token, final byte[] keyBytes); }
TokenEncoder { public boolean couldBeToken(final String potentialToken) { return TOKEN_PATTERN.matcher(potentialToken).matches(); } TokenEncoder(final String inAlgorithm); String encode(final String content, final byte[] keyBytes); boolean couldBeToken(final String potentialToken); String decode(final String token, final byte[] keyBytes);  }