Search in sources :

Example 1 with AffiliationDescriptorConfigElement

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;
}
Also used : AffiliationDescriptorConfigElement(com.sun.identity.federation.jaxb.entityconfig.AffiliationDescriptorConfigElement) EntityConfigElement(com.sun.identity.federation.jaxb.entityconfig.EntityConfigElement)

Example 2 with AffiliationDescriptorConfigElement

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);
    }
}
Also used : SPDescriptorConfigElement(com.sun.identity.federation.jaxb.entityconfig.SPDescriptorConfigElement) IDPDescriptorConfigElement(com.sun.identity.federation.jaxb.entityconfig.IDPDescriptorConfigElement) AffiliationDescriptorConfigElement(com.sun.identity.federation.jaxb.entityconfig.AffiliationDescriptorConfigElement)

Aggregations

AffiliationDescriptorConfigElement (com.sun.identity.federation.jaxb.entityconfig.AffiliationDescriptorConfigElement)2 EntityConfigElement (com.sun.identity.federation.jaxb.entityconfig.EntityConfigElement)1 IDPDescriptorConfigElement (com.sun.identity.federation.jaxb.entityconfig.IDPDescriptorConfigElement)1 SPDescriptorConfigElement (com.sun.identity.federation.jaxb.entityconfig.SPDescriptorConfigElement)1