public class CircleOfTrustManager extends Object
Constructor and Description |
---|
CircleOfTrustManager()
Constructor for
COTManager . |
CircleOfTrustManager(Object callerToken)
Constructor for
COTManager . |
Modifier and Type | Method and Description |
---|---|
void |
addCircleOfTrustMember(String realm,
String cotName,
String protocolType,
String entityId)
Adds entity identifier to a circle of trust under the realm.
|
void |
addCircleOfTrustMember(String realm,
String cotName,
String protocolType,
String entityId,
boolean addToEntityConfig)
Adds entity identifier to a circle of trust under the realm.
|
void |
createCircleOfTrust(String realm,
CircleOfTrustDescriptor cotDescriptor)
Creates a circle of trust.
|
void |
deleteCircleOfTrust(String realm,
String cotName)
Deletes the circle of trust under the realm.
|
Set |
getAllActiveCirclesOfTrust(String realm)
Returns a set of names of all active circle of trusts.
|
Set |
getAllCirclesOfTrust(String realm)
Returns a set of names of all circle of trusts.
|
CircleOfTrustDescriptor |
getCircleOfTrust(String realm,
String name)
Returns the circle of trust under the realm.
|
Map |
getIDFFCOTProviderMapping(String realm)
Returns a map of circle of trust name and the value
of the
sun-fm-trusted-providers attribute
The key in the map is the circle of trust name and
value is a set of providers retreived from the attribute. |
boolean |
isInCircleOfTrust(String realm,
String name,
String protocolType,
String entityId)
Determines if entity is in the circle of trust under the realm.
|
Set |
listCircleOfTrustMember(String realm,
String cotName,
String protocolType)
Lists trusted providers in a circle of trust under the realm.
|
void |
modifyCircleOfTrust(String realm,
CircleOfTrustDescriptor cotDescriptor)
Modifies the attributes of a circle of trust.
|
void |
removeCircleOfTrustMember(String realm,
String cotName,
String protocolType,
String entityId)
Removes entity from circle of trust under the realm.
|
void |
removeCircleOfTrustMember(String realm,
String cotName,
String protocolType,
String entityId,
boolean rmEntityConfig)
Removes entity from circle of trust under the realm.
|
public CircleOfTrustManager() throws COTException
COTManager
.COTException
- if unable to construct COTManager
.public CircleOfTrustManager(Object callerToken) throws COTException
COTManager
.callerToken
- session token of the callerCOTException
- if unable to construct COTManager
.public void createCircleOfTrust(String realm, CircleOfTrustDescriptor cotDescriptor) throws COTException
realm
- the realm under which the circle of trust will be created.cotDescriptor
- the circle of trust descriptor object to be created.COTException
- if unable to create the circle of trust.public void modifyCircleOfTrust(String realm, CircleOfTrustDescriptor cotDescriptor) throws COTException
realm
- the realm the circle of trust is in.cotDescriptor
- circle of trust descriptor that contains
the new set of attributesCOTException
- if unable to modify the circle of trust.public Set getAllCirclesOfTrust(String realm) throws COTException
realm
- The realm under which the circle of trust resides.COTException
- if unable to read circle of trust.public void addCircleOfTrustMember(String realm, String cotName, String protocolType, String entityId) throws COTException
realm
- The realm under which the circle of trust will be
modified.cotName
- the name of the circle of trust.protocolType
- the federation protcol type the entity supports.entityId
- the entity identifier.COTException
- if unable to add member to the
circle of trust.public void addCircleOfTrustMember(String realm, String cotName, String protocolType, String entityId, boolean addToEntityConfig) throws COTException
realm
- The realm under which the circle of trust will be
modified.cotName
- the name of the circle of trust.protocolType
- the federation protcol type the entity supports.entityId
- the entity identifier.addToEntityConfig
- if true, add the cotname to the entity config.COTException
- if unable to add member to the
circle of trust.public void removeCircleOfTrustMember(String realm, String cotName, String protocolType, String entityId) throws COTException
realm
- the realm to which the circle of trust belongs.cotName
- the circle of trust name.protocolType
- the federation protocol type.entityId
- the entity identifier.COTException
- if there is an error removing entity from the
circle of trust.public void removeCircleOfTrustMember(String realm, String cotName, String protocolType, String entityId, boolean rmEntityConfig) throws COTException
realm
- the realm to which the circle of trust belongs.cotName
- the circle of trust name.protocolType
- the federation protocol type.entityId
- the entity identifier.rmEntityConfig
- flag indicate needs to remove cot from
entity config or not.COTException
- if there is an error removing entity from the
circle of trust.public Set listCircleOfTrustMember(String realm, String cotName, String protocolType) throws COTException
realm
- The realm under which the circle of trust will be
modified.cotName
- the name of the circle of trustprotocolType
- the federation protocol for the entities.COTException
- if unable to list member in the
circle of trust.public void deleteCircleOfTrust(String realm, String cotName) throws COTException
realm
- The realm under which the circle of trust resides.cotName
- Name of the circle of trust.COTException
- if unable to delete the circle of trust.public CircleOfTrustDescriptor getCircleOfTrust(String realm, String name) throws COTException
realm
- The realm under which the circle of trust resides.name
- Name of the circle of trust.SAML2CircleOfTrustDescriptor
containing the
attributes of the given CircleOfTrust.COTException
- if unable to retrieve the circle of trust.public Set getAllActiveCirclesOfTrust(String realm) throws COTException
realm
- The realm under which the circle of trust resides.COTException
- if the names of
circle of trusts cannot be read.public boolean isInCircleOfTrust(String realm, String name, String protocolType, String entityId)
realm
- The realm under which the circle of trust resides.name
- Name of the Circle of Trust.protocolType
- the federation protocol type of the entity.entityId
- the entity identifier.public Map getIDFFCOTProviderMapping(String realm) throws COTException
sun-fm-trusted-providers
attribute
The key in the map is the circle of trust name and
value is a set of providers retreived from the attribute.sun-fm-trusted-providers
attribute.COTException
- if there is an error retrieving the
trusted providers.
TODO : cache thisCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.