public class COTUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Debug |
debug |
static String |
RESOURCE_BUNDLE_NAME |
Constructor and Description |
---|
COTUtils()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
fillEntriesInSet(Map attrMap,
String key,
String value)
Adds a set of a given value to a map.
|
static Set |
findProtocolsForEntity(String entityId,
String realm)
Returns set of protocol the entity supports.
|
static String |
getFirstEntry(Map attrMap,
String key)
Get the first value of set by given key searching in the given map.
|
static boolean |
isValidProtocolType(String protocolType)
Checks if the federation protocol type is valid.
|
public static final String RESOURCE_BUNDLE_NAME
public static Debug debug
public static String getFirstEntry(Map attrMap, String key)
attrMap
is null or key
is null.attrMap
- Map of attributes name and their values
in the circle of trust service. The key
is the attribute name and the value is
a Set.key
- the attribute name to be retrieved.public static void fillEntriesInSet(Map attrMap, String key, String value)
attrMap
is null or value
is null or
key
is null.attrMap
- Map of which set is to be added.key
- Key of the entry to be added.value
- Value to be added to the Set.public static boolean isValidProtocolType(String protocolType)
protocolType
- the federation protocol type.public static Set findProtocolsForEntity(String entityId, String realm)
entityId
- The ID of the entity to be checked.realm
- the realm in which the entity resides.COTConstants.SAML2
,
COTConstants.IDFF
or
COTConstants.WS_FED
.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.