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