@Test public void testFill() { Authentication auth = new StringAuthentication( "key", "value" ); AuthenticationContext context = newContext( auth ); assertEquals( null, context.get( "another-key" ) ); assertEquals( "value", context.get( "key" ) ); }
public void fill( AuthenticationContext context, String key, Map<String, String> data ) { context.put( this.key, value ); }
StringAuthentication implements Authentication { public void fill( AuthenticationContext context, String key, Map<String, String> data ) { context.put( this.key, value ); } }
StringAuthentication implements Authentication { public void fill( AuthenticationContext context, String key, Map<String, String> data ) { context.put( this.key, value ); } StringAuthentication( String key, String value ); }
StringAuthentication implements Authentication { public void fill( AuthenticationContext context, String key, Map<String, String> data ) { context.put( this.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 fill( AuthenticationContext context, String key, Map<String, String> data ) { context.put( this.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();  }