throw new NoMatchingRule("Non-simple name " + result + " after auth_to_local rule " + this);
throw new NoMatchingRule("No rules applied to " + toString());
&& nonSimplePattern.matcher(result).find() && ruleMechanism.equalsIgnoreCase(MECHANISM_HADOOP)) { throw new NoMatchingRule("Non-simple name " + result + " after auth_to_local rule " + this);
throw new NoMatchingRule("Non-simple name " + result + " after auth_to_local rule " + this);
throw new NoMatchingRule("Non-simple name " + result + " after auth_to_local rule " + this);
/** * Get the translation of the principal name into an operating system * user name. * @return the short name * @throws IOException */ public String getShortName() throws IOException { String[] params; if (hostName == null) { // if it is already simple, just return it if (realm == null) { return serviceName; } params = new String[]{realm, serviceName}; } else { params = new String[]{realm, serviceName, hostName}; } for(Rule r: rules) { String result = r.apply(params); if (result != null) { return result; } } throw new NoMatchingRule("No rules applied to " + toString()); }
/** * Get the translation of the principal name into an operating system * user name. * @return the short name * @throws IOException throws if something is wrong with the rules */ public String getShortName() throws IOException { String[] params; if (hostName == null) { // if it is already simple, just return it if (realm == null) { return serviceName; } params = new String[]{realm, serviceName}; } else { params = new String[]{realm, serviceName, hostName}; } for(Rule r: rules) { String result = r.apply(params); if (result != null) { return result; } } throw new NoMatchingRule("No rules applied to " + toString()); }
/** * Get the translation of the principal name into an operating system * user name. * @return the short name * @throws IOException throws if something is wrong with the rules */ public String getShortName() throws IOException { String[] params; if (hostName == null) { // if it is already simple, just return it if (realm == null) { return serviceName; } params = new String[]{realm, serviceName}; } else { params = new String[]{realm, serviceName, hostName}; } for(Rule r: rules) { String result = r.apply(params); if (result != null) { return result; } } throw new NoMatchingRule("No rules applied to " + toString()); }