doSaslReply(saslResponse);
private AuthProtocol initializeAuthContext(int authType) throws IOException { AuthProtocol authProtocol = AuthProtocol.valueOf(authType); if (authProtocol == null) { IOException ioe = new IpcException("Unknown auth protocol:" + authType); doSaslReply(ioe); throw ioe; } boolean isSimpleEnabled = enabledAuthMethods.contains(AuthMethod.SIMPLE); switch (authProtocol) { case NONE: { // don't reply if client is simple and server is insecure if (!isSimpleEnabled) { IOException ioe = new AccessControlException( "SIMPLE authentication is not enabled." + " Available:" + enabledAuthMethods); doSaslReply(ioe); throw ioe; } break; } default: { break; } } return authProtocol; }
doSaslReply(saslResponse);
doSaslReply(saslResponse);
doSaslReply(saslResponse);
doSaslReply(saslResponse);
private AuthProtocol initializeAuthContext(int authType) throws IOException { AuthProtocol authProtocol = AuthProtocol.valueOf(authType); if (authProtocol == null) { IOException ioe = new IpcException("Unknown auth protocol:" + authType); doSaslReply(ioe); throw ioe; } boolean isSimpleEnabled = enabledAuthMethods.contains(AuthMethod.SIMPLE); switch (authProtocol) { case NONE: { // don't reply if client is simple and server is insecure if (!isSimpleEnabled) { IOException ioe = new AccessControlException( "SIMPLE authentication is not enabled." + " Available:" + enabledAuthMethods); doSaslReply(ioe); throw ioe; } break; } default: { break; } } return authProtocol; }
private AuthProtocol initializeAuthContext(int authType) throws IOException { AuthProtocol authProtocol = AuthProtocol.valueOf(authType); if (authProtocol == null) { IOException ioe = new IpcException("Unknown auth protocol:" + authType); doSaslReply(ioe); throw ioe; } boolean isSimpleEnabled = enabledAuthMethods.contains(AuthMethod.SIMPLE); switch (authProtocol) { case NONE: { // don't reply if client is simple and server is insecure if (!isSimpleEnabled) { IOException ioe = new AccessControlException( "SIMPLE authentication is not enabled." + " Available:" + enabledAuthMethods); doSaslReply(ioe); throw ioe; } break; } default: { break; } } return authProtocol; }
private AuthProtocol initializeAuthContext(int authType) throws IOException { AuthProtocol authProtocol = AuthProtocol.valueOf(authType); if (authProtocol == null) { IOException ioe = new IpcException("Unknown auth protocol:" + authType); doSaslReply(ioe); throw ioe; } boolean isSimpleEnabled = enabledAuthMethods.contains(AuthMethod.SIMPLE); switch (authProtocol) { case NONE: { // don't reply if client is simple and server is insecure if (!isSimpleEnabled) { IOException ioe = new AccessControlException( "SIMPLE authentication is not enabled." + " Available:" + enabledAuthMethods); doSaslReply(ioe); throw ioe; } break; } default: { break; } } return authProtocol; }
private AuthProtocol initializeAuthContext(int authType) throws IOException { AuthProtocol authProtocol = AuthProtocol.valueOf(authType); if (authProtocol == null) { IOException ioe = new IpcException("Unknown auth protocol:" + authType); doSaslReply(ioe); throw ioe; } boolean isSimpleEnabled = enabledAuthMethods.contains(AuthMethod.SIMPLE); switch (authProtocol) { case NONE: { // don't reply if client is simple and server is insecure if (!isSimpleEnabled) { IOException ioe = new AccessControlException( "SIMPLE authentication is not enabled." + " Available:" + enabledAuthMethods); doSaslReply(ioe); throw ioe; } break; } default: { break; } } return authProtocol; }