sb.append(inbound.getCredentials()); sb.append("properties:"); List<Property> props = inbound.getProperties().getPropertiesList(); for (Property p: props) { if (!p.getKey().equalsIgnoreCase("password")) {
final UserProperties props = inbound.getProperties(); for (int i = 0; i < props.getPropertiesCount(); i++) { Property prop = props.getProperties(i);
mergeProperties(other.getProperties());
/** * Sets the user on the session, and finalizes the session. * * @param userName user name to set on the session * */ void finalizeSession(String userName) { // create a session session = UserSession.Builder.newBuilder() .withCredentials(UserCredentials.newBuilder() .setUserName(userName) .build()) .withOptionManager(userWorker.getSystemOptions()) .withUserProperties(inbound.getProperties()) .setSupportComplexTypes(inbound.getSupportComplexTypes()) .build(); // if inbound impersonation is enabled and a target is mentioned final String targetName = session.getTargetUserName(); if (config.getImpersonationManager() != null && targetName != null) { config.getImpersonationManager().replaceUserOnSession(targetName, session); } }
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message) throws java.io.IOException { if(message.hasChannel()) output.writeEnum(1, message.getChannel().getNumber(), false); if(message.hasSupportListening()) output.writeBool(2, message.getSupportListening(), false); if(message.hasRpcVersion()) output.writeInt32(3, message.getRpcVersion(), false); if(message.hasCredentials()) output.writeObject(4, message.getCredentials(), org.apache.drill.exec.proto.SchemaUserBitShared.UserCredentials.WRITE, false); if(message.hasProperties()) output.writeObject(5, message.getProperties(), org.apache.drill.exec.proto.SchemaUserProtos.UserProperties.WRITE, false); if(message.hasSupportComplexTypes()) output.writeBool(6, message.getSupportComplexTypes(), false); if(message.hasSupportTimeout()) output.writeBool(7, message.getSupportTimeout(), false); if(message.hasClientInfos()) output.writeObject(8, message.getClientInfos(), org.apache.drill.exec.proto.SchemaUserProtos.RpcEndpointInfos.WRITE, false); if(message.hasSaslSupport()) output.writeEnum(9, message.getSaslSupport().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message)
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasProperties()) { if (!getProperties().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }
mergeProperties(other.getProperties());
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message) throws java.io.IOException { if(message.hasChannel()) output.writeEnum(1, message.getChannel().getNumber(), false); if(message.hasSupportListening()) output.writeBool(2, message.getSupportListening(), false); if(message.hasRpcVersion()) output.writeInt32(3, message.getRpcVersion(), false); if(message.hasCredentials()) output.writeObject(4, message.getCredentials(), org.apache.drill.exec.proto.SchemaUserBitShared.UserCredentials.WRITE, false); if(message.hasProperties()) output.writeObject(5, message.getProperties(), org.apache.drill.exec.proto.SchemaUserProtos.UserProperties.WRITE, false); if(message.hasSupportComplexTypes()) output.writeBool(6, message.getSupportComplexTypes(), false); if(message.hasSupportTimeout()) output.writeBool(7, message.getSupportTimeout(), false); if(message.hasClientInfos()) output.writeObject(8, message.getClientInfos(), org.apache.drill.exec.proto.SchemaUserProtos.RpcEndpointInfos.WRITE, false); if(message.hasSaslSupport()) output.writeEnum(9, message.getSaslSupport().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message)
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasProperties()) { if (!getProperties().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }