@Test public void testDigest() { Authentication auth1 = new StringAuthentication( "key", "value" ); Authentication auth2 = new StringAuthentication( "key", "value" ); String digest1 = newDigest( auth1 ); String digest2 = newDigest( auth2 ); assertEquals( digest1, digest2 ); Authentication auth3 = new StringAuthentication( "key", "Value" ); String digest3 = newDigest( auth3 ); assertFalse( digest3.equals( digest1 ) ); Authentication auth4 = new StringAuthentication( "Key", "value" ); String digest4 = newDigest( auth4 ); assertFalse( digest4.equals( digest1 ) ); }
public void digest( AuthenticationDigest digest ) { digest.update( key, value ); }
StringAuthentication implements Authentication { public void digest( AuthenticationDigest digest ) { digest.update( key, value ); } }
StringAuthentication implements Authentication { public void digest( AuthenticationDigest digest ) { digest.update( key, value ); } StringAuthentication( String key, String value ); }
StringAuthentication implements Authentication { public void digest( AuthenticationDigest digest ) { digest.update( key, value ); } StringAuthentication( String key, String value ); void fill( AuthenticationContext context, String key, Map<String, String> data ); void digest( AuthenticationDigest digest ); @Override boolean equals( Object obj ); @Override int hashCode(); @Override String toString(); }
StringAuthentication implements Authentication { public void digest( AuthenticationDigest digest ) { digest.update( key, value ); } StringAuthentication( String key, String value ); void fill( AuthenticationContext context, String key, Map<String, String> data ); void digest( AuthenticationDigest digest ); @Override boolean equals( Object obj ); @Override int hashCode(); @Override String toString();  }