code: @Api
  	public boolean setSecurityContext(String authenticationToken, List<Authentication> authentications) {
  		if (!authentications.isEmpty()) {
  			// build authorization and build thread local SecurityContext
  			((DefaultSecurityContext) securityContext).setAuthentications(authenticationToken, authentications);
  			return true;
  		}
  		return false;
  	}
docs: Method which sets the authorizations in the {@link SecurityContext}. To be overwritten when adding custom
  policies.
  
  @param authenticationToken authentication token
  @param authentications authorizations for this token
  @return true when a valid context was created, false when the token is not authenticated