public class CircleOfTrustDescriptor extends Object
COTDescriptor
class is the representation
of the circle of trust configuration.Constructor and Description |
---|
CircleOfTrustDescriptor(String circleOfTrustName,
String realm,
String circleOfTrustStatus)
Creates new
COTDescriptor instance. |
CircleOfTrustDescriptor(String circleOfTrustName,
String realm,
String circleOfTrustStatus,
String circleOfTrustDescription,
String circleOfTrustIDFFReaderURL,
String circleOfTrustIDFFWriterURL,
String circleOfTrustSAML2ReaderURL,
String circleOfTrustSAML2WriterURL,
Set circleOfTrustProvider)
Creates new
COTDescriptor instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
add(String entityID,
String protocol)
Adds entity identifier to trusted providers set within the
circle of trust.
|
protected Map |
getAttributes()
Returns attributes of this object into a map.
|
String |
getCircleOfTrustDescription()
Returns description of the Circle of Trust.
|
String |
getCircleOfTrustName()
Returns name of the Circle of Trust.
|
String |
getCircleOfTrustRealm()
Returns name of the realm the Circle of Trust resides.
|
String |
getCircleOfTrustStatus()
Returns status of the Circle of Trust.
|
String |
getIDFFReaderServiceURL()
Returns reader service URL of the Circle of Trust for ID-FF protocol.
|
String |
getIDFFWriterServiceURL()
Returns Writer Service URL of the Circle of Trust for ID-FF protocol.
|
String |
getSAML2ReaderServiceURL()
Returns reader service URL of the Circle of Trust for SAMLv2 protocol.
|
String |
getSAML2WriterServiceURL()
Returns Writer Service URL of the Circle of Trust for SAMLv2 protocol.
|
Set |
getTrustedProviders()
Returns a set of trusted providers in the circle of trust.
|
Set |
getTrustedProviders(String protocol)
Returns a set of trusted providers in the circle of trust for a specific
protocol.
|
boolean |
remove(String entityID,
String protocol)
Removes member from the trusted provider set within this circle
of trust.
|
void |
setCircleOfTrustDescription(String circleOfTrustDescription)
Sets description of the Circle of Trust.
|
void |
setCircleOfTrustStatus(String circleOfTrustStatus)
Sets status of a circle of trust.
|
void |
setIDFFReaderServiceURL(String readerServiceURL)
Sets reader service URL for ID-FF protocol.
|
void |
setIDFFWriterServiceURL(String writerServiceURL)
Sets writer service URL for IDFF protocol.
|
void |
setSAML2ReaderServiceURL(String readerServiceURL)
Sets reader service URL for SMALv2 protocol.
|
void |
setSAML2WriterServiceURL(String writerServiceURL)
Sets writer service URL for SAML2 protocol.
|
void |
setTrustedProviders(Set circleOfTrustProvider)
Sets trusted providers of a circle of trust.
|
public CircleOfTrustDescriptor(String circleOfTrustName, String realm, String circleOfTrustStatus) throws COTException
COTDescriptor
instance.circleOfTrustName
- name for the circleOfTrustrealm
- The realm the circle of trust resides.circleOfTrustStatus
- status of the CircleOfTrust.COTException
- if circleOfTrustName
or circleOfTrustStatus
is invalid.public CircleOfTrustDescriptor(String circleOfTrustName, String realm, String circleOfTrustStatus, String circleOfTrustDescription, String circleOfTrustIDFFReaderURL, String circleOfTrustIDFFWriterURL, String circleOfTrustSAML2ReaderURL, String circleOfTrustSAML2WriterURL, Set circleOfTrustProvider) throws COTException
COTDescriptor
instance.circleOfTrustName
- name for the circleOfTrustrealm
- The realm this circle of trust resides.circleOfTrustStatus
- status of the CircleOfTrust.circleOfTrustDescription
- description for the circleOfTrust.circleOfTrustIDFFReaderURL
- the reader url of the CircleOfTrust.circleOfTrustIDFFWriterURL
- the writer url of the circleOfTrust.circleOfTrustSAML2ReaderURL
- the reader url of the CircleOfTrust.circleOfTrustSAML2WriterURL
- the writer url of the circleOfTrust.circleOfTrustProvider
- the trusted providers of the CircleOfTrust.COTException
- if any input parameter is invalid.public String getCircleOfTrustName()
public String getCircleOfTrustRealm()
public String getCircleOfTrustStatus()
public String getCircleOfTrustDescription()
public String getIDFFReaderServiceURL()
public String getSAML2ReaderServiceURL()
public String getIDFFWriterServiceURL()
public String getSAML2WriterServiceURL()
public void setCircleOfTrustDescription(String circleOfTrustDescription)
circleOfTrustDescription
- Description of the Circle of Trust.public void setIDFFReaderServiceURL(String readerServiceURL) throws COTException
readerServiceURL
- reader service URL for ID-FF protocol.COTException
- if readerServiceURL
is not an URL.public void setSAML2ReaderServiceURL(String readerServiceURL) throws COTException
readerServiceURL
- reader service URL of SAMLv2 protocol.COTException
- if readerServiceURL
is not an URL.public void setIDFFWriterServiceURL(String writerServiceURL) throws COTException
writerServiceURL
- writer service URL of the Circle of Trust.COTException
- if writerServiceURL
is not an URL.public void setSAML2WriterServiceURL(String writerServiceURL) throws COTException
writerServiceURL
- writer service URL of the Circle of Trust.COTException
- if writerServiceURL
is not an URL.public void setCircleOfTrustStatus(String circleOfTrustStatus) throws COTException
circleOfTrustStatus
- the circle of trust status. The valid value
for status is "active" or "inactive".COTException
- if circleOfTrustStatus
is blank or it is not "active" or "inactive"public void setTrustedProviders(Set circleOfTrustProvider)
circleOfTrustProvider
- A set of trusted providerspublic Set getTrustedProviders()
public Set getTrustedProviders(String protocol)
protocol
- name of the federation protocolpublic boolean add(String entityID, String protocol) throws COTException
entityID
- the entity id of a provider .protocol
- name of protocol for the entity.COTException
public boolean remove(String entityID, String protocol)
entityID
- The entity id of a provider.protocol
- name of protocol for the entity.protected Map getAttributes()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.