Package com.avoka.fc.core.util
Class SAML2AttributesUtils
java.lang.Object
com.avoka.fc.core.util.SAML2AttributesUtils
Provides utility methods around SAML2 Attributes
- Since:
- 4.2.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncnNameParseGroupList
(List<String> groupList) Returns a Setcontaining the parsed CN Group Names given a list of fully qualified group names static String
cnNameParser
(String groupName) Parses out the CN group name, get the group name out of the first element, e.g.
-
Constructor Details
-
SAML2AttributesUtils
public SAML2AttributesUtils()
-
-
Method Details
-
cnNameParser
Parses out the CN group name, get the group name out of the first element, e.g. "CN=fcdemo,OU=Distribution Groups,OU=MyBusiness,DC=avoka,DC=local" becomes "fcdemo"- Parameters:
groupName
- this is the group name from AD memberOf eg "CN=fcdemo,OU=Distribution Groups,OU=MyBusiness,DC=avoka,DC=local"- Returns:
- the group name out of the first CN element eg "fcdemo"
-
cnNameParseGroupList
Returns a Setcontaining the parsed CN Group Names given a list of fully qualified group names - Parameters:
groupList
- a list of Strings the fully qualified group names from AD memberOf eg "CN=fcdemo,OU=Distribution Groups,OU=MyBusiness,DC=avoka,DC=local"- Returns:
- a Set
containing the parsed CN Group Names
-