use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2SPServicesViewBean method populateAssertionConsumer.
private void populateAssertionConsumer(List assertionConServices) {
tblAssertionConsumerModel.clear();
SAMLv2Model model = (SAMLv2Model) getModel();
int numberOfRows = assertionConServices.size();
for (int i = 0; i < numberOfRows; i++) {
tblAssertionConsumerModel.appendRow();
AssertionConsumerServiceElement acsElem = (AssertionConsumerServiceElement) assertionConServices.get(i);
tblAssertionConsumerModel.setValue(TBL_DATA_DEFAULT, String.valueOf(acsElem.isIsDefault()));
tblAssertionConsumerModel.setValue(TBL_DATA_TYPE, ((acsElem.getBinding()).substring(37)));
tblAssertionConsumerModel.setValue(TBL_DATA_LABEL, ((acsElem.getBinding()).substring(37)));
tblAssertionConsumerModel.setValue(TBL_DATA_LOCATION, acsElem.getLocation());
tblAssertionConsumerModel.setValue(TBL_DATA_INDEX, Integer.toString(acsElem.getIndex()));
}
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2IDPAdvancedViewBean method handleButton1Request.
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
try {
SAMLv2Model model = (SAMLv2Model) getModel();
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTES);
//retrieve the extended metadata values from the property sheet
Map idpExtValues = getExtendedValues();
Map new_idpExtValues = ps.getAttributeValues(model.getIDPEXAdDataMap(), false, model);
idpExtValues.putAll(new_idpExtValues);
//save the extended metadata values for the Idp
model.setIDPExtAttributeValues(realm, entityName, idpExtValues, location);
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "samlv2.idp.property.updated");
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
forwardTo();
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2IDPAssertionContentViewBean method getStandardValues.
private Map getStandardValues() {
Map map = new HashMap();
try {
//gets standard metadata values
SAMLv2Model model = (SAMLv2Model) getModel();
map = model.getStandardIdentityProviderAttributes(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 SAMLv2IDPAssertionContentViewBean method getExtendedValues.
private Map<String, Set<String>> getExtendedValues() {
Map<String, Set<String>> extendedValues = new HashMap<>();
try {
SAMLv2Model model = (SAMLv2Model) getModel();
Map<String, List<String>> attr = model.getExtendedIdentityProviderAttributes(realm, entityName);
for (Map.Entry<String, List<String>> entry : attr.entrySet()) {
extendedValues.put(entry.getKey(), convertListToSet(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 SAMLv2IDPServicesViewBean method getStandardValues.
private Map getStandardValues() {
Map map = new HashMap();
try {
//gets standard metadata values
SAMLv2Model model = (SAMLv2Model) getModel();
map = model.getStandardIdentityProviderAttributes(realm, entityName);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return map;
}
Aggregations