use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2AffiliateViewBean method getStandardAffiliationValues.
private Map getStandardAffiliationValues() {
Map map = new HashMap();
try {
SAMLv2Model model = (SAMLv2Model) getModel();
map = model.getStandardAffiliationAttributes(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 SAMLv2AttrAuthorityViewBean method getStandardAttriAuthorityValues.
private Map getStandardAttriAuthorityValues() {
Map map = new HashMap();
try {
SAMLv2Model model = (SAMLv2Model) getModel();
map = model.getStandardAttributeAuthorityAttributes(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 SAMLv2SPAssertionContentViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
ps.init();
SAMLv2Model model = (SAMLv2Model) getModel();
ps.setAttributeValues(getStandardValues(), model);
ps.setAttributeValues(getExtendedValues(), model);
if (isHosted()) {
SAMLv2AuthContexts authContexts = null;
try {
authContexts = model.getSPAuthenticationContexts(realm, entityName);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
populateAuthenticationContext(authContexts, tblAuthContextsModel, SAMLv2Model.SP_AUTHN_CONTEXT_CLASS_REF_MAPPING_DEFAULT);
}
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2SPAssertionContentViewBean 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 SAMLv2SPAssertionProcessingViewBean 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;
}
Aggregations