Sun OpenSSO Enterprise 8.0 Developer's Guide

com.sun.liberty

The com.sun.liberty package contains the LibertyManager class which must be instantiated by web applications that want to access the Federation framework. It also contains the methods needed for account federation, session termination, log in, log out and other actions. Some of these methods are described in the following table.

Table 6–3 com.sun.liberty Methods

Method 

Description 

getFederatedProviders()

Returns a specific user's federated providers. 

getIDPFederationStatus()

Retrieves a user's federation status with a specified identity provider. This method assumes that the user is already federated with the provider. 

getIDPList()

Returns a list of all trusted identity providers. 

getIDPList()

Returns a list of all trusted identity providers for the specified hosted provider. 

getProvidersToFederate()

Returns a list of all trusted identity providers to which the specified user is not already federated. 

getSPList()

Returns a list of all trusted service providers. 

getSPList()

Returns a list of all trusted service providers for the specified hosted provider. 

getSPFederationStatus()

Retrieves a user's federation status with a specified service provider. This method assumes that the user is already federated with the provider.