Class WSFederationCOTUtils


  • public class WSFederationCOTUtils
    extends Object
    WSFederationCOTUtils provides utility methods to update the WS-Federation Entity Configuration cotlist attributes in the Service and Identity Provider configurations.
    • Constructor Detail

      • WSFederationCOTUtils

        public WSFederationCOTUtils​(Object callerToken)
    • Method Detail

      • updateEntityConfig

        public void updateEntityConfig​(String realm,
                                       String name,
                                       String entityId)
                                throws WSFederationMetaException,
                                       JAXBException
        Updates the entity config to add the circle of trust name to the cotlist attribute. The Service Provider and Identity Provider Configuration are updated.
        Parameters:
        realm - the realm name where the entity configuration is.
        name - the circle of trust name.
        entityId - the name of the Entity identifier.
        Throws:
        WSFederationMetaException - 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 name,
                                           String entityId)
                                    throws WSFederationMetaException,
                                           JAXBException
        Removes the circle of trust name passed from the cotlist attribute in the Entity Config. The Service Provider and Identity Provider Entity Configuration are updated.
        Parameters:
        realm - the realm of the provider
        name - the circle of trust name to be removed.
        entityId - the entity identifier of the provider.
        Throws:
        WSFederationMetaException - if there is an error updating the entity config.
        JAXBException - if there is an error updating the entity config.