public Builder withUserProperties(UserProperties properties) { if (properties == null) { return this; } for (int i = 0; i < properties.getPropertiesCount(); i++) { final Property property = properties.getProperties(i); final String propertyName = property.getKey().toUpperCase(Locale.ROOT); final String propertyValue = property.getValue(); try { final PropertySetter sessionProperty = PropertySetter.valueOf(propertyName); sessionProperty.setValue(userSession, propertyValue); } catch(IllegalArgumentException e) { logger.warn("Ignoring unknown property: {}", propertyName); } } return this; }
final UserProperties props = inbound.getProperties(); for (int i = 0; i < props.getPropertiesCount(); i++) { Property prop = props.getProperties(i); if (UserSession.PASSWORD.equalsIgnoreCase(prop.getKey())) { password = prop.getValue();
UserProperties props = inbound.getProperties(); for (int i = 0; i < props.getPropertiesCount(); i++) { Property p = props.getProperties(i); final String key = p.getKey().toLowerCase(); if (key.contains("password") || key.contains("pwd")) {
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getPropertiesCount(); i++) { if (!getProperties(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }