@Test public void testProcessChallengeWithLotsOfBlanks() throws Exception { TestAuthScheme authscheme = new TestAuthScheme(); CharArrayBuffer buffer = new CharArrayBuffer(32); buffer.append(" WWW-Authenticate: Test realm=\"realm1\""); Header header = new BufferedHeader(buffer); authscheme.processChallenge(header); Assert.assertEquals("test", authscheme.getSchemeName()); Assert.assertEquals("realm1", authscheme.getParameter("realm")); }
public String getParameter(final String name) { if (name == null) { throw new IllegalArgumentException("Parameter name may not be null"); } if (this.params == null) { return null; } return this.params.get(name.toLowerCase(Locale.ENGLISH)); }
RFC2617Scheme extends AuthSchemeBase { public String getParameter(final String name) { if (name == null) { throw new IllegalArgumentException("Parameter name may not be null"); } if (this.params == null) { return null; } return this.params.get(name.toLowerCase(Locale.ENGLISH)); } }
RFC2617Scheme extends AuthSchemeBase { public String getParameter(final String name) { if (name == null) { throw new IllegalArgumentException("Parameter name may not be null"); } if (this.params == null) { return null; } return this.params.get(name.toLowerCase(Locale.ENGLISH)); } RFC2617Scheme(); }
RFC2617Scheme extends AuthSchemeBase { public String getParameter(final String name) { if (name == null) { throw new IllegalArgumentException("Parameter name may not be null"); } if (this.params == null) { return null; } return this.params.get(name.toLowerCase(Locale.ENGLISH)); } RFC2617Scheme(); String getParameter(final String name); String getRealm(); }
RFC2617Scheme extends AuthSchemeBase { public String getParameter(final String name) { if (name == null) { throw new IllegalArgumentException("Parameter name may not be null"); } if (this.params == null) { return null; } return this.params.get(name.toLowerCase(Locale.ENGLISH)); } RFC2617Scheme(); String getParameter(final String name); String getRealm();  }