core/src/main/java/org/springframework/security/core/userdetails/memory/UserAttributeEditor.java
public void setAsText(String s) throws IllegalArgumentException {
		if (StringUtils.hasText(s)) {
			String[] tokens = StringUtils.commaDelimitedListToStringArray(s);
			UserAttribute userAttrib = new UserAttribute();

			List<String> authoritiesAsStrings = new ArrayList<>();

			for (int i = 0; i < tokens.length; i++) {
				String currentToken = tokens[i].trim();

				if (i == 0) {
					userAttrib.setPassword(currentToken);
				}
				else {
					if (currentToken.toLowerCase().equals("enabled")) {
						userAttrib.setEnabled(true);
					}
					else if (currentToken.toLowerCase().equals("disabled")) {
						userAttrib.setEnabled(false);
					}
					else {
						authoritiesAsStrings.add(currentToken);
					}
				}
			}
			userAttrib.setAuthoritiesAsString(authoritiesAsStrings);

			if (userAttrib.isValid()) {
				setValue(userAttrib);
			}
			else {
				setValue(null);
			}
		}
		else {
			setValue(null);
		}
	}
public void setAsText(String s) throws IllegalArgumentException {
		if (StringUtils.hasText(s)) {
			String[] tokens = StringUtils.commaDelimitedListToStringArray(s);
			UserAttribute userAttrib = new UserAttribute();

			List<String> authoritiesAsStrings = new ArrayList<>();

			for (int i = 0; i < tokens.length; i++) {
				String currentToken = tokens[i].trim();

				if (i == 0) {
					userAttrib.setPassword(currentToken);
				}
				else {
					if (currentToken.toLowerCase().equals("enabled")) {
						userAttrib.setEnabled(true);
					}
					else if (currentToken.toLowerCase().equals("disabled")) {
						userAttrib.setEnabled(false);
					}
					else {
						authoritiesAsStrings.add(currentToken);
					}
				}
			}
			userAttrib.setAuthoritiesAsString(authoritiesAsStrings);

			if (userAttrib.isValid()) {
				setValue(userAttrib);
			}
			else {
				setValue(null);
			}
		}
		else {
			setValue(null);
		}
	}
========================================================================================================