/** * Does the given username and password authenticate for the * given DSpace Context? * * @param context * @param un * @param pw * @return true if yes, false if not */ public boolean authenticates(Context context, String un, String pw) { int auth = AuthenticationManager.authenticate(context, un, pw, null, null); if (auth == AuthenticationMethod.SUCCESS) { return true; } return false; }
int explicitStatus = AuthenticationManager.authenticate(context, email, password, realm, request);
/** * Does the given username and password authenticate for the * given DSpace Context? * * @param context * @param un * @param pw * @return true if yes, false if not */ public boolean authenticates(Context context, String un, String pw) { int auth = AuthenticationManager.authenticate(context, un, pw, null, null); if (auth == AuthenticationMethod.SUCCESS) { return true; } return false; } }
int status = AuthenticationManager.authenticate(context, null, null, null, request);
int status = AuthenticationManager.authenticate(context, email, password, null, request);
int status = AuthenticationManager.authenticate(context, netid, password, null, request);