Sets id of current authentication process.

@param sessionAuthId id of current authentication process.
348948
void setId(String sessionAuthId) {
        synchronized (lock) {
            if (isCreatingSession.get()) {
                this.sessionAuthId = sessionAuthId;
            }
            lock.notifyAll();
        }
    }
711188
void setInstanceId(String instanceId) throws IllegalArgumentException {
        if (instanceId != null && !"".equals(instanceId)) {

            subInstanceId = getSubProcessInstanceId(instanceId);

            try {
                long id = getProcessInstanceId(instanceId);
                mainInstanceId = id < 0 ? null : new Date(id);
            } catch (NumberFormatException nfe) {
                throw new IllegalArgumentException(getLocalizedString("LVM_ERROR_INSTANCEID"), nfe);
            }
        }
    }
168124
public void setEnableAuthentication( boolean enableAuthentication ) {

		this.logger.fine( "Authentication is now " + (enableAuthentication ? "enabled" : "disabled") + ". Updating the REST resource." );
		this.enableAuthentication = enableAuthentication;

		if( this.authenticationFilter != null )
			this.authenticationFilter.setAuthenticationEnabled( enableAuthentication );
	}
612581
public void setClientID(String clientID) {
        if (clientID == null || clientID.isEmpty()) {
            this.clientID = DEFAULT_CLIENT_ID;
            return;
        }
        this.clientID = clientID;
    }
1229015
@InterfaceAudience.Private
    protected void checkSession() {
        if (getAuthenticator() != null) {
            Authorizer auth = (Authorizer) getAuthenticator();
            auth.setRemoteURL(remote);
            auth.setLocalUUID(db.publicUUID());
        }
        if (getAuthenticator() != null && getAuthenticator() instanceof SessionCookieAuthorizer) {
            // Sync Gateway session API is at /db/_session; try that first
            checkSessionAtPath("_session");
        } else {
            login();
        }
    }
40958
public void setUserId(String userId) {
        if (userId == null) {
            _properties.remove(AMQP_PROP_USER_ID);
            return;
        }
        
        _properties.put(AMQP_PROP_USER_ID, userId);
    }
994176
public void sessionCreated(HttpSessionEvent httpSessionEvent) {
		if (active) {
			if (log.isDebugEnabled()) 
				log.debug("sessionCreated sessionId = "
						+ httpSessionEvent.getSession().getId());
		}
	}
627159
public SID setIdentifierAuthority(byte[] identifierAuthority) {
        if (identifierAuthority == null || identifierAuthority.length != 6) {
            throw new IllegalArgumentException("Invalid identifier authority");
        }

        this.identifierAuthority = Arrays.copyOf(identifierAuthority, identifierAuthority.length);
        return this;
    }
1125254
public function setSessionID(string $session_id)
    {
        if (!defined('WEDETO_TEST') || WEDETO_TEST === 0)
            throw new \RuntimeException("Cannot change the session ID");

        $this->session_id = $session_id;
        return $this;
    }
329231
public static void setId(Object document, String id) {
		DocumentAccessor d = getAccessor(document);
		if (d.hasIdMutator()) {
			d.setId(document, id);
		}
	}
104725
static void setAuthParams(String appKey, String desiredUid,
                              String[] alreadyAuthedUids) {
        setAuthParams(appKey, desiredUid, alreadyAuthedUids, null);
    }
965561
public static void generateSessionIdIfNecessary(final TraceeBackend backend, final String sessionId) {
		if (backend != null && !backend.containsKey(TraceeConstants.SESSION_ID_KEY) && backend.getConfiguration().shouldGenerateSessionId()) {
			backend.put(TraceeConstants.SESSION_ID_KEY, Utilities.createAlphanumericHash(sessionId, backend.getConfiguration().generatedSessionIdLength()));
		}
	}
494161
private function setSession($session, $sessionID)
    {
        // close current session
        $session->writeClose();
        // set session id (to value loaded from cache)
        $session->setSessionId($sessionID);
        // re-start the session
        $session->start();
    }
183488
@Deprecated
    public void setAppId(String appId) {
        checkUserSession("setAppId");
        synchronized (this.lock) {
            mAppId = appId;
            sessionInvalidated = true;
        }
    }
446334
public void setAuthMethod(String method)
    {
        if (isStarted() && _authMethod!=null && !_authMethod.equals(method))
            throw new IllegalStateException("Handler started");
        _authMethod = method;
    }
1285822
protected function setSessionId($sessionId, $validateSessionId = true)
    {

        if ($validateSessionId) {
            if (!$this->sessionIdIsValid($sessionId)) {
                $sessionId = false;
            }
        }

        if (!$sessionId) {
            $sessionId = $this->generateSessionId();
        }

        $this->session_id = $sessionId;

        // Not relying on session to retrieve it's ID from the cookie
        session_id($sessionId);

        // Will set cookie automatically anyway, let's try to control it
        session_set_cookie_params(
            self::$config['cookie']['lifetime'],
            self::$config['cookie']['path'],
            self::$config['cookie']['domain'],
            self::$config['cookie']['secureOnly'],
            self::$config['cookie']['httpOnly']
        );

        session_name(self::$config['cookie']['name']);
    }
78284
public void setSessionId(short sessionId)
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSessionId", ""+sessionId);
      if (this.sessionId == 0 && sessionId != 0)
      {
         this.sessionId = sessionId;
      }
      else
      {
         // If the session Id is being set twice this is badness. The conversation helper is
         // associated one to one to a proxy queue, that in turn is associated one to one with a
         // consumer session. They aren't re-used, so calling this twice indicates some bug.
         SIErrorException e = new SIErrorException(
            nls.getFormattedMessage("SESSION_ID_HAS_ALREADY_BEEN_SET_SICO1045", null, null)
         );

         FFDCFilter.processException(e, CLASS_NAME + ".setSessionId",
                                     CommsConstants.CONVERSATIONHELPERIMPL_11, this);

         if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, e.getMessage(), e);

         throw e;
      }
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setSessionId");
   }