net.sf.sparql.benchmarking.util
Class AuthUtils

java.lang.Object
  extended by net.sf.sparql.benchmarking.util.AuthUtils

public class AuthUtils
extends Object

Helper class with authentication related utilities

Author:
rvesse

Method Summary
static HttpAuthenticator prepareAuthentication(String username, String password, boolean preemptive, String... endpoints)
          Prepares an authenticator that may use simple authentication
static HttpAuthenticator prepareAuthenticator(String username, String password, boolean preemptive, String formUrl, String formUserField, String formPwdField, String... endpoints)
          Prepares an authenticator that may use simple/form based authentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

prepareAuthenticator

public static HttpAuthenticator prepareAuthenticator(String username,
                                                     String password,
                                                     boolean preemptive,
                                                     String formUrl,
                                                     String formUserField,
                                                     String formPwdField,
                                                     String... endpoints)
Prepares an authenticator that may use simple/form based authentication

Parameters:
username - User name
password - Password
preemptive - Preemptive auth?
formUrl - Form login URL
formUserField - Form user field
formPwdField - Form password field
endpoints - Endpoints to configure authentication for
Returns:
Authenticator or null if insufficient information to authenticate

prepareAuthentication

public static HttpAuthenticator prepareAuthentication(String username,
                                                      String password,
                                                      boolean preemptive,
                                                      String... endpoints)
Prepares an authenticator that may use simple authentication

Parameters:
username - User name
password - Password
preemptive - Preemptive auth?
endpoints - Endpoints to configure authentication for
Returns:
Authenticator or null if insufficient information to authenticate


Copyright © 2014. All Rights Reserved.