public class AccountUtils extends Object
AccountUtils
is a utility class for setting and retrieving
the WS-Federation account federation information.
Constructor and Description |
---|
AccountUtils() |
Modifier and Type | Method and Description |
---|---|
static NameIDInfo |
getAccountFederation(String userID,
String hostEntityID,
String remoteEntityID)
Returns the account federation information of a user for the given
identity provider and a service provider.
|
static String |
getNameIDInfoAttribute()
Returns the WS-Federation Name Identifier Info attribute name.
|
static String |
getNameIDInfoKeyAttribute()
Returns the WS-Federation Name Identifier InfoKey attribute name.
|
static boolean |
removeAccountFederation(NameIDInfo info,
String userID)
Removes the account federation of a user.
|
static void |
setAccountFederation(NameIDInfo info,
String userID)
Sets the account federation information in the datastore for a user.
|
public static NameIDInfo getAccountFederation(String userID, String hostEntityID, String remoteEntityID) throws WSFederationException
userID
- user id for which account federation needs to be returned.hostEntityID
- EntityID
of the hosted entity.remoteEntityID
- EntityID
of the remote entity.WSFederationException
- if account federation retrieval failed.public static void setAccountFederation(NameIDInfo info, String userID) throws WSFederationException
info
- NameIDInfo
object to be set.userID
- user identifier for which the account federation to be set.WSFederationException
- if any failure.public static boolean removeAccountFederation(NameIDInfo info, String userID) throws WSFederationException
info
- NameIDInfo
object.userID
- user identifier for which the account federation is to
be removed.WSFederationException
- if any failure.public static String getNameIDInfoAttribute()
public static String getNameIDInfoKeyAttribute()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.