Esempio n. 1
0
 void setUser(UserToBitHandshake inbound) throws IOException {
   session =
       UserSession.Builder.newBuilder()
           .withCredentials(inbound.getCredentials())
           .withOptionManager(worker.getSystemOptions())
           .withUserProperties(inbound.getProperties())
           .setSupportComplexTypes(inbound.getSupportComplexTypes())
           .build();
   final String targetName = session.getTargetUserName();
   if (impersonationManager != null && targetName != null) {
     impersonationManager.replaceUserOnSession(targetName, session);
   }
 }