protected void setValues(Map map) { Map values = correctCaseOfAttributeNames(map); for (Iterator iter = values.keySet().iterator(); iter.hasNext(); ) { String attr = (String) iter.next(); if (attr.equals(SAMLConstants.AUTH_PASSWORD)) { String pwd = (String) AccessController.doPrivileged(new DecodeAction((String) values.get(attr))); propertySheetModel.setValue(SAMLConstants.AUTH_PASSWORD, pwd); propertySheetModel.setValue( SAMLConstants.AUTH_PASSWORD + SAMLPropertyTemplate.CONFIRM_SUFFIX, pwd); } else { propertySheetModel.setValue(attr, values.get(attr)); } } }
protected void setValues(String value) { try { URL url = new URL(value); propertySheetModel.setValue(ATTR_PROTOCOL, url.getProtocol()); propertySheetModel.setValue(ATTR_TARGET, url.getHost()); propertySheetModel.setValue(ATTR_PATH, url.getPath()); int port = url.getPort(); if (port == -1) { propertySheetModel.setValue(ATTR_PORT, ""); } else { propertySheetModel.setValue(ATTR_PORT, Integer.toString(port)); } } catch (MalformedURLException e) { debug.warning("FSSAMLTargetURLsViewBeanBase.setValues", e); } }
protected void setValues(String value) { WSAuthHandlerEntry entry = new WSAuthHandlerEntry(value); propertySheetModel.setValue(ATTR_KEY, entry.strKey); propertySheetModel.setValue(ATTR_CLASS, entry.strClass); }
protected void setValues(Map values) { Map upcase = AMAdminUtils.upCaseKeys(values); propertySheetModel.setValue(ATTR_INSTANCE_ID, upcase.get(SAMLConstants.INSTANCEID)); propertySheetModel.setValue(ATTR_SITE_ID, upcase.get(SAMLConstants.SITEID)); propertySheetModel.setValue(ATTR_ISSUER_NAME, upcase.get(SAMLConstants.ISSUERNAME)); }