code: public void setAuthenticated(final String sessionId, final Principal user) {
  
  		securityContext = SecurityContext.getInstance(user, AccessMode.Backend);
  		securityContext.setSessionId(sessionId);
  
  		logger.debug("Session ID of security context " + securityContext + " set to " + sessionId);
  
  		timedOut = false;
  	}
docs: ~--- set methods ----------------------------------------------------