use of org.zaproxy.zap.session.WebSession in project zaproxy by zaproxy.
the class User method authenticate.
/**
* Authenticates the user, using its authentication credentials and the authentication method
* corresponding to its Context.
*
* @see SessionManagementMethod
* @see AuthenticationMethod
* @see Context
*/
public void authenticate() {
log.info("Authenticating user: " + this.name);
WebSession result = getContext().getAuthenticationMethod().authenticate(getContext().getSessionManagementMethod(), this.authenticationCredentials, this);
// no issues appear if a simultaneous call to #queueAuthentication() is made
synchronized (this) {
this.lastSuccessfulAuthTime = System.currentTimeMillis();
this.authenticatedSession = result;
}
}
Aggregations