public DirectBearerAuthClient(final Authenticator tokenAuthenticator, final ProfileCreator profileCreator) { defaultAuthenticator(tokenAuthenticator); defaultProfileCreator(profileCreator); }
public DirectFormClient(final String usernameParameter, final String passwordParameter, final Authenticator usernamePasswordAuthenticator) { this.usernameParameter = usernameParameter; this.passwordParameter = passwordParameter; defaultAuthenticator(usernamePasswordAuthenticator); }
public HeaderClient(final String headerName, final String prefixHeader, final Authenticator tokenAuthenticator, final ProfileCreator profileCreator) { this.headerName = headerName; this.prefixHeader = prefixHeader; defaultAuthenticator(tokenAuthenticator); defaultProfileCreator(profileCreator); }
@Test public void testGetCredentialsMissingPassword() { final DirectFormClient formClient = getFormClient(); final MockWebContext context = MockWebContext.create(); assertNull(formClient.getCredentials(context.addRequestParameter(formClient.getPasswordParameter(), PASSWORD))); }
public DirectBasicAuthClient(final Authenticator usernamePasswordAuthenticator, final ProfileCreator profileCreator) { defaultAuthenticator(usernamePasswordAuthenticator); defaultProfileCreator(profileCreator); }
public ParameterClient(final String parameterName, final Authenticator tokenAuthenticator, final ProfileCreator profileCreator) { this.parameterName = parameterName; defaultAuthenticator(tokenAuthenticator); defaultProfileCreator(profileCreator); }
public DirectFormClient(final Authenticator usernamePasswordAuthenticator, final ProfileCreator profileCreator) { defaultAuthenticator(usernamePasswordAuthenticator); defaultProfileCreator(profileCreator); }
public DirectDigestAuthClient(final Authenticator digestAuthenticator, final ProfileCreator profileCreator) { defaultAuthenticator(digestAuthenticator); defaultProfileCreator(profileCreator); }
public IpClient(final Authenticator tokenAuthenticator, final ProfileCreator profileCreator) { defaultAuthenticator(tokenAuthenticator); defaultProfileCreator(profileCreator); }
public HeaderClient(final String headerName, final Authenticator tokenAuthenticator) { this.headerName = headerName; defaultAuthenticator(tokenAuthenticator); }
public CookieClient(final String cookieName, final Authenticator cookieAuthenticator) { this.cookieName = cookieName; defaultAuthenticator(cookieAuthenticator); }
public ParameterClient(final String parameterName, final Authenticator tokenAuthenticator) { this.parameterName = parameterName; defaultAuthenticator(tokenAuthenticator); }
public DirectBearerAuthClient(final Authenticator tokenAuthenticator) { defaultAuthenticator(tokenAuthenticator); }
public IpClient(final Authenticator tokenAuthenticator) { defaultAuthenticator(tokenAuthenticator); }
public DirectDigestAuthClient(final Authenticator digestAuthenticator) { defaultAuthenticator(digestAuthenticator); }
public DirectBasicAuthClient(final Authenticator usernamePasswordAuthenticator) { defaultAuthenticator(usernamePasswordAuthenticator); }
@Override protected void clientInit() { defaultCredentialsExtractor(new IpExtractor()); } }
public HeaderClient(final String headerName, final Authenticator tokenAuthenticator, final ProfileCreator profileCreator) { this.headerName = headerName; defaultAuthenticator(tokenAuthenticator); defaultProfileCreator(profileCreator); }
public DirectFormClient(final Authenticator usernamePasswordAuthenticator) { defaultAuthenticator(usernamePasswordAuthenticator); }
public HeaderClient(final String headerName, final String prefixHeader, final Authenticator tokenAuthenticator) { this.headerName = headerName; this.prefixHeader = prefixHeader; defaultAuthenticator(tokenAuthenticator); }