use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2PDPViewBean method populateValue.
private void populateValue() {
SAMLv2Model model = (SAMLv2Model) getModelInternal();
try {
Map values = model.getPDPDescriptor(realm, entityName);
values.putAll(model.getPDPConfig(realm, entityName, location));
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTES);
ps.setAttributeValues(values, model);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2SPAdvancedViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
ps.init();
SAMLv2Model model = (SAMLv2Model) getModel();
//only an ecp attribute from std
ps.setAttributeValues(getStandardValues(), model);
ps.setAttributeValues(getExtendedValues(), model);
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2SPAdvancedViewBean method getExtendedValues.
private Map getExtendedValues() {
Map extendedValues = new HashMap();
try {
//gets extended metadata values
SAMLv2Model model = (SAMLv2Model) getModel();
Map attrs = model.getExtendedServiceProviderAttributes(realm, entityName);
Set entries = attrs.entrySet();
Iterator iterator = entries.iterator();
//the list of values is converted to a set
while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next();
extendedValues.put((String) entry.getKey(), convertListToSet((List) entry.getValue()));
}
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return extendedValues;
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2SPAssertionContentViewBean method getStandardValues.
private Map getStandardValues() {
Map map = new HashMap();
try {
//gets standard metadata values
SAMLv2Model model = (SAMLv2Model) getModel();
map = model.getStandardServiceProviderAttributes(realm, entityName);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return map;
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2IDPAssertionProcessingViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
ps.init();
SAMLv2Model model = (SAMLv2Model) getModel();
//no attributes from std
//get ext attributes
ps.setAttributeValues(getExtendedValues(), model);
}
Aggregations