Class SAML2AttributesUtils

java.lang.Object
com.avoka.fc.core.util.SAML2AttributesUtils

public class SAML2AttributesUtils extends Object
Provides utility methods around SAML2 Attributes
Since:
4.2.1
  • Constructor Details

    • SAML2AttributesUtils

      public SAML2AttributesUtils()
  • Method Details

    • cnNameParser

      public static String cnNameParser(String groupName)
      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

      public static Set<String> cnNameParseGroupList(List<String> groupList)
      Returns a Set containing 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