use of com.sun.identity.federation.jaxb.entityconfig.AffiliationDescriptorConfigElement in project OpenAM by OpenRock.
the class IDFFMetaManager method getAffiliationDescriptorConfig.
/**
* Returns Affiliation Configuration for the entity identifier.
*
* @param realm The realm under which the entity resides.
* @param entityID ID of the entity to be retrieved.
* @return <code>AffiliationDescriptorConfigElement</code> for the entity
* identifier . A null is returned if the configuration
* is not found.
* @throws IDFFMetaException if there is an error retrieving service
* provider configuration.
*/
public AffiliationDescriptorConfigElement getAffiliationDescriptorConfig(String realm, String entityID) throws IDFFMetaException {
AffiliationDescriptorConfigElement affiliationDesConfig = null;
EntityConfigElement entityConfig = getEntityConfig(realm, entityID);
if (entityConfig != null) {
affiliationDesConfig = (AffiliationDescriptorConfigElement) entityConfig.getAffiliationDescriptorConfig();
}
return affiliationDesConfig;
}
use of com.sun.identity.federation.jaxb.entityconfig.AffiliationDescriptorConfigElement in project OpenAM by OpenRock.
the class IDFFMetaManager method removeEntityFromCOT.
/**
* Removes and entity identifier from circle of trust.
* @param realm The realm under which the entity resides.
* @param entityID the entity identifier.
* @throws IDFFMetaException if there is an error remove entity.
*/
private void removeEntityFromCOT(String realm, String entityID) throws IDFFMetaException {
IDPDescriptorConfigElement idpConfig = getIDPDescriptorConfig(realm, entityID);
if (idpConfig != null) {
removeFromCircleOfTrust(idpConfig, realm, entityID);
}
SPDescriptorConfigElement spConfig = getSPDescriptorConfig(realm, entityID);
if (spConfig != null) {
removeFromCircleOfTrust(spConfig, realm, entityID);
}
AffiliationDescriptorConfigElement affiConfig = getAffiliationDescriptorConfig(realm, entityID);
if (affiConfig != null) {
removeFromCircleOfTrust(affiConfig, realm, entityID);
}
}
Aggregations