Class IDFFCOTUtils


  • public class IDFFCOTUtils
    extends Object
    This class utility methods to update circle of trust attribute in the service and identity provider configuration.
    • Constructor Detail

      • IDFFCOTUtils

        public IDFFCOTUtils​(Object callerToken)
        Creates a new instance of IDFFCOTUtils
    • Method Detail

      • updateEntityConfig

        public void updateEntityConfig​(String realm,
                                       String cotName,
                                       String entityID)
                                throws IDFFMetaException,
                                       JAXBException
        Updates the entity config to add the circle of turst name to the cotlist attribute. The Service Provider and Identity Provider Configurations are updated.
        Parameters:
        realm - realm the entity resides in.
        cotName - the circle of trust name.
        entityID - the name of the Entity identifier.
        Throws:
        IDFFMetaException - if there is a configuration error when updating the configuration.
        JAXBException - is there is an error updating the entity configuration.
      • removeFromEntityConfig

        public void removeFromEntityConfig​(String realm,
                                           String cotName,
                                           String entityID)
                                    throws IDFFMetaException,
                                           JAXBException
        Removes the circle trust name passed from the cotlist list attribute in the Entity Config. The Service Provider and Identity Provider Entity Configuration are updated.
        Parameters:
        realm - realm the entity resides in.
        cotName - the circle of trust name to be removed.
        entityID - the entity identifier of the provider.
        Throws:
        IDFFMetaException - if there is an error updating the entity config.
        JAXBException - if there is an error updating the entity config.