Package com.sun.identity.saml2.meta
Class SAML2COTUtils
- java.lang.Object
-
- com.sun.identity.saml2.meta.SAML2COTUtils
-
public class SAML2COTUtils extends Object
TheSAML2COTUtilsprovides utility methods to update the SAML2 Entity Configurationcotlistattributes in the Service and Identity Provider configurations.
-
-
Constructor Summary
Constructors Constructor Description SAML2COTUtils()Default Constructor.SAML2COTUtils(Object callerToken)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveFromEntityConfig(String realm, String name, String entityId)Removes the circle trust name passed from thecotlistattribute in the Entity Config.voidupdateEntityConfig(String realm, String name, String entityId)Updates the entity config to add the circle of turst name to thecotlistattribute.
-
-
-
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 thecotlistattribute. 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 thecotlistattribute 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.
-
-