Class FSAccountUtils


  • public class FSAccountUtils
    extends Object
    The utility class contains the helper functions used in account management.
    • Field Detail

      • USER_FED_INFO_KEY_ATTR

        public static final String USER_FED_INFO_KEY_ATTR
        Attribute name to store Account's federation information key
        See Also:
        Constant Field Values
      • USER_FED_INFO_ATTR

        public static final String USER_FED_INFO_ATTR
        Attribute name to store Account's federation information.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FSAccountUtils

        public FSAccountUtils()
    • Method Detail

      • stringToObject

        public static FSAccountFedInfo stringToObject​(String fedInfoString)
                                               throws FSAccountMgmtException
        Parses federation information string and put corresponding parts in object fields.
        Parameters:
        fedInfoString - - String containg federation information.
        Returns:
        Account federation information object.
        Throws:
        FSAccountMgmtException - if fedInfoString cannot be parsed.
      • objectToInfoString

        public static String objectToInfoString​(FSAccountFedInfo fedInfoObject)
                                         throws FSAccountMgmtException
        Returns string equalivent of FSAccountFedInfo object.
        Parameters:
        fedInfoObject - federation info as an object.
        Returns:
        Account Federation information.
        Throws:
        FSAccountMgmtException - if fedInfoObject cannot be converted to string.
      • objectToKeyString

        public static String objectToKeyString​(FSAccountFedInfoKey fedInfoKeyObject)
                                        throws FSAccountMgmtException
        Returns nameSpace and name of account federation information key.
        Parameters:
        fedInfoKeyObject - Account federation information key.
        Returns:
        string equalivent of account federation information key.
        Throws:
        FSAccountMgmtException - if the namespace and/or name in the fedInfoKeyObject are null.