Class SAML2COTUtils


  • public class SAML2COTUtils
    extends Object
    The SAML2COTUtils provides utility methods to update the SAML2 Entity Configuration cotlist attributes in the Service and Identity Provider configurations.
    • Constructor Detail

      • SAML2COTUtils

        public SAML2COTUtils()
        Default Constructor.
      • SAML2COTUtils

        public SAML2COTUtils​(Object callerToken)
        Constructor.
        Parameters:
        callerToken - session token of the caller.
    • Method Detail

      • updateEntityConfig

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