Skip navigation links
com.sun.identity.wsfederation.common

Class AccountUtils

    • Constructor Detail

      • AccountUtils

        public AccountUtils()
    • Method Detail

      • getAccountFederation

        public static NameIDInfo getAccountFederation(String userID,
                                                      String hostEntityID,
                                                      String remoteEntityID)
                                               throws WSFederationException
        Returns the account federation information of a user for the given identity provider and a service provider.
        Parameters:
        userID - user id for which account federation needs to be returned.
        hostEntityID - EntityID of the hosted entity.
        remoteEntityID - EntityID of the remote entity.
        Returns:
        the account federation info object. null if the account federation does not exist.
        Throws:
        WSFederationException - if account federation retrieval failed.
      • setAccountFederation

        public static void setAccountFederation(NameIDInfo info,
                                                String userID)
                                         throws WSFederationException
        Sets the account federation information in the datastore for a user.
        Parameters:
        info - NameIDInfo object to be set.
        userID - user identifier for which the account federation to be set.
        Throws:
        WSFederationException - if any failure.
      • removeAccountFederation

        public static boolean removeAccountFederation(NameIDInfo info,
                                                      String userID)
                                               throws WSFederationException
        Removes the account federation of a user.
        Parameters:
        info - NameIDInfo object.
        userID - user identifier for which the account federation is to be removed.
        Returns:
        true if the account federation is removed successfully.
        Throws:
        WSFederationException - if any failure.
      • getNameIDInfoAttribute

        public static String getNameIDInfoAttribute()
        Returns the WS-Federation Name Identifier Info attribute name.
        Returns:
        the WS-Federation Name Identifier Info attribute name.
      • getNameIDInfoKeyAttribute

        public static String getNameIDInfoKeyAttribute()
        Returns the WS-Federation Name Identifier InfoKey attribute name.
        Returns:
        the WS-Federation Name Identifier InfoKey attribute name.

Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.