|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.liberty.LibertyManager
public class LibertyManager
LibertyManager
forms the basis of the Public APIs. It has all
the methods which the JSPs etc. need to use for
federation/termination/logout etc.
Constructor Summary | |
---|---|
LibertyManager()
|
Method Summary | |
---|---|
static boolean |
checkNonce(String nonce,
String user)
Deprecated. This method has been deprecated. Please use other means to verify nounce. |
static String |
cleanQueryString(HttpServletRequest request)
|
static FSAccountFedInfo |
getAccountFedInfo(HttpServletRequest request,
String entityID)
Deprecated. This method is deprecated. |
static FSAccountFedInfo |
getAccountFedInfo(HttpServletRequest request,
String realm,
String entityID,
String providerRole)
Returns the federation information associated with current liberty session. |
static Iterator |
getAllIDPList(String realm)
Returns a list of all trusted Identity Providers under the realm. |
static Iterator |
getAllSPList(String realm)
Returns a list of all trusted Service Providers under the realm. |
static String |
getAuthnContext(HttpServletRequest request,
String entityID)
Deprecated. This method is deprecated. |
static String |
getAuthnContext(HttpServletRequest request,
String realm,
String entityID)
Returns the authentication context used in liberty single sign-on. |
static String |
getAuthnRequestEnvelope(HttpServletRequest request)
Returns Authentication Request Envelope from a HTTP servlet request. |
static String |
getConsentHandlerURL(HttpServletRequest request)
Returns the ConsentHandler . |
static String |
getCOTKey()
Returns the COT key from IFSConstants . |
static List |
getDiscoveryBootStrapCredentials(HttpServletRequest request,
String providerID)
Deprecated. This method has been deprecated. Use LibertyManager.getDiscoveryBootStrapCredentials(
HttpServletRequest request, String providerID, String providerRole) |
static List |
getDiscoveryBootStrapCredentials(HttpServletRequest request,
String providerID,
String providerRole)
Returns the Discovery Service Credentials in the Advice element. |
static NodeList |
getDiscoveryBootStrapResourceOfferings(HttpServletRequest request,
String providerID)
Deprecated. This method has been deprecated. Use LibertyManager.getDiscoveryBootStrapResourceOfferings(
HttpServletRequest request, String providerID, String providerRole) |
static NodeList |
getDiscoveryBootStrapResourceOfferings(HttpServletRequest request,
String providerID,
String providerRole)
Returns the Discovery Service Resource Offerings nodes in an attribute statement. |
static String |
getEntityID(String metaAlias)
Returns entityID from the provider Alias
using meta manager calls. |
static String |
getErrorPageURL(String providerId,
String providerRole,
HttpServletRequest request)
Deprecated. This method is deprecated. Please use getErrorPageURL(String,String,String,HttpServletRequest) |
static String |
getErrorPageURL(String realm,
String providerId,
String providerRole,
HttpServletRequest request)
Returns the provider's error page. |
static Set |
getFederatedProviders(String userName,
String hostProviderId,
String hostProviderRole)
Deprecated. This method is deprecated. |
static Set |
getFederatedProviders(String userName,
String realm,
String hostProviderId,
String hostProviderRole)
Returns the set of federated providers for an user using Account Management API. |
static String |
getFederationDonePageURL(String providerID,
String providerRole,
HttpServletRequest request)
Deprecated. This method is deprecated. |
static String |
getFederationDonePageURL(String realm,
String providerID,
String providerRole,
HttpServletRequest request)
Deprecated. This method is deprecated. |
static String |
getFederationHandlerURL(HttpServletRequest request)
Returns the FederationHandler . |
static String |
getFedErrorKey()
Returns Federation Error Key. |
static String |
getFedRemarkKey()
Returns FederationRemark Key. |
static String |
getHomeURL(String providerID,
String providerRole)
Deprecated. This method is deprecated. |
static String |
getHomeURL(String realm,
String providerID,
String providerRole)
Returns Provider's HomePageURL . |
static boolean |
getIDPFederationStatus(String user,
String remoteEntityId,
String hostedEntityId,
String hostedProviderRole)
Deprecated. This method is deprecated. |
static boolean |
getIDPFederationStatus(String user,
String realm,
String remoteEntityId,
String hostedEntityId,
String hostedProviderRole)
Returns the federation status of a user with an Identity Provider. |
static Iterator |
getIDPList()
Deprecated. This method has been deprecated. Please use getAllIDPList(String realm) instead. |
static Iterator |
getIDPList(String hostedEntityID)
Deprecated. This method is deprecated. Please use getIDPList(String,String) |
static Iterator |
getIDPList(String realm,
String hostedEntityID)
Returns a list of all trusted Identity Providers under the realm for a given hosted provider's entity ID. |
static String |
getInterSiteURL(HttpServletRequest request)
Returns the interSiteURL from IFSConstants . |
static String |
getIntroducedProvider(HttpServletRequest request)
Returns the ID of the provider discovered via the introduction protocol. |
static String |
getLECPContentType()
Returns Liberty-enabled client and proxy profile HTTP content type. |
static String |
getLECPHeaderName()
Returns Liberty-enabled client and proxy profile HTTP header name. |
static Set |
getListOfCOTs(String providerId,
String providerRole)
Deprecated. This method is deprecated. |
static Set |
getListOfCOTs(String realm,
String providerId,
String providerRole)
Returns the List of COTs for the given Provider under a realm. |
static String |
getLoginURL(HttpServletRequest request)
Returns the LoginURL from IFSConstants . |
static String |
getLRURLKey()
Returns the LRURLKey from IFSConstants . |
static NameIdentifier |
getMappedNameIdentifier(String hostedSPMetaAlias,
Object ssoToken,
String remoteSPEntityID)
Returns NameIdentifier between the IDP and
the other SP for the same principal. |
static String |
getMetaAlias(String providerID,
String providerRole)
Deprecated. This method is deprecated by getMetaAlias(String,String,String) . |
static String |
getMetaAlias(String realm,
String providerID,
String providerRole)
Returns metaAlias from provider ID under a realm. |
static String |
getMetaAliasKey()
Returns the metaAliasKey from IFSConstants . |
static String |
getNameRegistrationDonePageURL(String providerID,
String providerRole,
HttpServletRequest request)
Deprecated. This method is deprecated. Please use getNameRegistrationDonePageURL(
String,String,String,HttpServletRequest) |
static String |
getNameRegistrationDonePageURL(String realm,
String providerID,
String providerRole,
HttpServletRequest request)
Returns the Name RegistrationDonePageURL from the
providerID under a realm. |
static String |
getNameRegistrationProviderIDKey()
Returns name registration provider ID key. |
static String |
getNameRegistrationURL(String providerID,
String providerRole,
HttpServletRequest request)
Deprecated. This method is deprecated. |
static String |
getNameRegistrationURL(String realm,
String providerID,
String providerRole,
HttpServletRequest request)
Returns NameRegistrationURL . |
static String |
getNewRequest(HttpServletRequest request)
Creates New Request ID from the HttpRequestServlet . |
static String |
getNonce(String user)
Deprecated. This method has been deprecated. Please use other means to generate nounce. |
static String |
getPreLoginServletURL(String providerID,
String providerRole,
HttpServletRequest request)
Deprecated. This method is deprecated. |
static String |
getPreLoginServletURL(String realm,
String providerID,
String providerRole,
HttpServletRequest request)
Returns PreLoginServlet URL and appends
metaAlias to it. |
static String |
getProviderIDKey()
Returns the providerIDKey from IFSConstants . |
static String |
getProviderRole(String metaAlias)
Returns providerRole from the ProviderAlias
using meta Mgmt calls. |
static Set |
getProvidersToFederate(String providerID,
String providerRole,
String userName)
Deprecated. This method is deprecated. Please use getProvidersToFederate(String, String, String,String) |
static Set |
getProvidersToFederate(String realm,
String providerID,
String providerRole,
String userName)
Returns the list of all Trusted Identity Providers of this user not already federated with. |
static String |
getRealmByMetaAlias(String metaAlias)
Returns the realm by parsing the metaAlias. |
static Set |
getRegisteredProviders(String userName,
String hostProviderId,
String providerRole)
Deprecated. This method is deprecated. Please use getRegisteredProviders(String,String,String,String) |
static Set |
getRegisteredProviders(String userName,
String realm,
String hostProviderId,
String providerRole)
Returns registered providers of an user. |
static String |
getRequestIDKey()
Returns the requestIDKey from IFSConstants . |
static String |
getSelectedProviderKey()
Returns the selectedProviderKey from
IFSConstants . |
static boolean |
getSPFederationStatus(String user,
String remoteProviderId,
String hostedProviderId,
String hostedProviderRole)
Deprecated. This method is deprecated. |
static boolean |
getSPFederationStatus(String user,
String realm,
String remoteProviderId,
String hostedProviderId,
String hostedProviderRole)
Returns the federations status of a user with an Service Provider. |
static Iterator |
getSPList()
Deprecated. This method is deprecated. Please use getAllSPList(String realm) . |
static Iterator |
getSPList(String hostedEntityID)
Deprecated. This method is deprecated. Please use getSPList(String,String) |
static Iterator |
getSPList(String realm,
String hostedEntityID)
Returns a list of all trusted Service Providers for this Hosted Provider. |
static String |
getSuccinctID(String entityID)
Deprecated. This method has been deprecated. Use LibertyManager.getSuccinctID(String, String) |
static String |
getSuccinctID(String providerID,
String providerRole)
Returns succinct ID of a provider. |
static String |
getTerminationDonePageURL(String providerID,
String providerRole,
HttpServletRequest request)
Deprecated. This method is deprecated |
static String |
getTerminationDonePageURL(String realm,
String providerID,
String providerRole,
HttpServletRequest request)
Returns the TerminationDonePageURL from the provider ID
under a realm. |
static String |
getTerminationProviderIDKey()
Returns the termination providerIDKey from
IFSConstants . |
static String |
getTerminationURL(String providerID,
String providerRole,
HttpServletRequest request)
Deprecated. This method is deprecated |
static String |
getTerminationURL(String realm,
String providerID,
String providerRole,
HttpServletRequest request)
Returns Termination URL. |
static String |
getUser(HttpServletRequest request)
Returns the user from HttpServletRequest . |
static boolean |
isFederationCancelled(HttpServletRequest request)
Returns true if Federation is cancelled. |
static boolean |
isLECPProfile(HttpServletRequest request)
Determines if a HTTP servlet request is Liberty-enabled client and proxy profile. |
static boolean |
isLogoutSuccess(HttpServletRequest request)
Returns true if logout succeeded. |
static boolean |
isNameRegistrationCancelled(HttpServletRequest request)
Returns true if name registration is cancelled. |
static boolean |
isNameRegistrationSuccess(HttpServletRequest request)
Returns true if name registration succeeds. |
static boolean |
isTerminationCancelled(HttpServletRequest request)
Returns true if termination is cancelled. |
static boolean |
isTerminationSuccess(HttpServletRequest request)
Returns true if Termination succeeds. |
static boolean |
setAuthnRequest(FSAuthnRequest request,
String entityID)
Deprecated. This method is deprecated. |
static boolean |
setAuthnRequest(FSAuthnRequest request,
String realm,
String entityID)
Sets the authentication request to be sent to identity provider. |
Constructor Detail |
---|
public LibertyManager()
Method Detail |
---|
public static Iterator getIDPList()
getAllIDPList(String realm)
instead.
LibertyManager.getAllIDPList(String)
public static Iterator getAllIDPList(String realm)
realm
- The realm under which the entity resides.
public static Iterator getIDPList(String hostedEntityID)
getIDPList(String,String)
hostedEntityID
- hosted provider's entity ID.
LibertyManager.getIDPList(String,String)
public static Iterator getIDPList(String realm, String hostedEntityID)
realm
- The realm under which the entity resides.hostedEntityID
- hosted provider's entity ID.
public static Iterator getSPList()
getAllSPList(String realm)
.
LibertyManager.getAllSPList(String)
public static Iterator getAllSPList(String realm)
realm
- The realm under which the entity resides.
public static Iterator getSPList(String hostedEntityID)
getSPList(String,String)
hostedEntityID
- hosted provider's entity ID.
LibertyManager.getSPList(String,String)
public static Iterator getSPList(String realm, String hostedEntityID)
realm
- The realm under which the entity resides.hostedEntityID
- hosted provider's entity ID.
public static boolean getIDPFederationStatus(String user, String remoteEntityId, String hostedEntityId, String hostedProviderRole)
user
- The user name obtained by calling getUser()
on a
Liberty-authenticated HttpServletRequest
from the userremoteEntityId
- Entity ID of the Remote Identity Provider.hostedEntityId
- Hosted Provider's entity ID.hostedProviderRole
- Hosted Provider's Role.
LibertyManager.getIDPFederationStatus(String,String,String,String)
public static boolean getIDPFederationStatus(String user, String realm, String remoteEntityId, String hostedEntityId, String hostedProviderRole)
user
- The user name obtained by calling getUser()
on a
Liberty-authenticated HttpServletRequest
from the userrealm
- The realm under which the entity resides.remoteEntityId
- Entity ID of the Remote Identity Provider.hostedEntityId
- Hosted Provider's entity ID.hostedProviderRole
- Hosted Provider's Role.
public static boolean getSPFederationStatus(String user, String remoteProviderId, String hostedProviderId, String hostedProviderRole)
user
- The user name obtained by calling
getRemoteUser()
on a Liberty-authenticated
HttpServletRequest
from the user.remoteProviderId
- The entity ID of the Remote Service Provider.hostedProviderId
- Hosted provider's entity ID.hostedProviderRole
- Hosted Provider Role.
LibertyManager.getSPFederationStatus(String,String,String,String,String)
public static boolean getSPFederationStatus(String user, String realm, String remoteProviderId, String hostedProviderId, String hostedProviderRole)
user
- The user name obtained by calling
getRemoteUser()
on a Liberty-authenticated
HttpServletRequest
from the user.realm
- The relam under which the entity resides.remoteProviderId
- The entity ID of the Remote Service Provider.hostedProviderId
- Hosted provider's entity ID.hostedProviderRole
- Hosted Provider Role.
public static String getNonce(String user)
user
- The user obtained by calling
getRemoteUser()
on a Liberty-authenticated
HttpServletRequest
from the user.
public static boolean checkNonce(String nonce, String user)
getNonce()
, and invalidates it.
nonce
- String containing nonce.user
- User name passed to getNonce
to obtain nonce.
nonce
is the same as the last one
returned by getNonce
method.public static String getIntroducedProvider(HttpServletRequest request)
null
, no provider was discovered. Can be passed to
LoginServlet
if null
.
request
- HTTP servlet request.
public static String getMetaAliasKey()
metaAliasKey
from IFSConstants
.
metaAliasKey
from IFSConstants
.public static String getTerminationProviderIDKey()
providerIDKey
from
IFSConstants
.
providerIDKey
from
IFSConstants
.public static String getRequestIDKey()
requestIDKey
from IFSConstants
.
requestIDKey
from IFSConstants
.public static String getProviderIDKey()
providerIDKey
from IFSConstants
.
providerIDKey
from IFSConstants
.public static String getLRURLKey()
LRURLKey
from IFSConstants
.
LRURLKey
from IFSConstants
.public static String getCOTKey()
COT
key from IFSConstants
.
COT
key from IFSConstants
.public static String getSelectedProviderKey()
selectedProviderKey
from
IFSConstants
.
selectedProviderKey
from
IFSConstants
.public static String getFedErrorKey()
public static String getFedRemarkKey()
FederationRemark
Key.
FederationRemark
Keypublic static String getUser(HttpServletRequest request)
HttpServletRequest
.
request
- HTTP servlet request.
HttpServletRequest
.public static String getHomeURL(String providerID, String providerRole)
HomePageURL
.
providerID
- Provider's entity ID.providerRole
- Provider Role.
HomePageURL
.LibertyManager.getHomeURL(String,String,String)
public static String getHomeURL(String realm, String providerID, String providerRole)
HomePageURL
.
realm
- The realm under which the entity resides.providerID
- Provider's entity ID.providerRole
- Provider Role.
HomePageURL
.public static String getPreLoginServletURL(String providerID, String providerRole, HttpServletRequest request)
PreLoginServlet
URL and appends
metaAlias
to it.
providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
PreLoginServlet
URL and appends
metaAlias
to it.LibertyManager.getPreLoginServletURL(String,String,String,HttpServletRequest)
public static String getPreLoginServletURL(String realm, String providerID, String providerRole, HttpServletRequest request)
PreLoginServlet
URL and appends
metaAlias
to it.
realm
- The realm under which the entity resides.providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
PreLoginServlet
URL and appends
metaAlias
to it.public static String getLoginURL(HttpServletRequest request)
LoginURL
from IFSConstants
.
request
- HTTP servlet request.
LoginURL
from IFSConstants
public static String getInterSiteURL(HttpServletRequest request)
interSiteURL
from IFSConstants
.
request
- HTTP servlet request.
interSiteURL
from IFSConstants
.public static String getEntityID(String metaAlias)
entityID
from the provider Alias
using meta manager
calls.
metaAlias
- The metaAlias
of the provider
entityID
corresponding to the
metaAlias
.public static Set getProvidersToFederate(String providerID, String providerRole, String userName)
getProvidersToFederate(String, String, String,String)
getIDPList()
. This method is used to show the drop-down
menu consisting of all the Identity Providers that the user is not
already federated with.
providerID
- provider's entity ID.providerRole
- provider Role.userName
- name of user.
LibertyManager.getProvidersToFederate(String,String,String,String)
public static Set getProvidersToFederate(String realm, String providerID, String providerRole, String userName)
getIDPList()
. This method is used to show the drop-down
menu consisting of all the Identity Providers that the user is not
already federated with.
realm
- the realm that the provider residesproviderID
- provider's entity ID.providerRole
- provider Role.userName
- name of user.
public static Set getFederatedProviders(String userName, String hostProviderId, String hostProviderRole)
userName
- for which the federated providers are to be returned.hostProviderId
- Hosted provider's entity ID.hostProviderRole
- Hosted Provider Role.
userName
.LibertyManager.getFederatedProviders(String, String, String, String)
public static Set getFederatedProviders(String userName, String realm, String hostProviderId, String hostProviderRole)
userName
- for which the federated providers are to be returned.realm
- The realm under which the entity resides.hostProviderId
- Hosted provider's entity ID.hostProviderRole
- Hosted Provider Role.
userName
.public static Set getListOfCOTs(String providerId, String providerRole)
providerId
- The ID of the provider whose COTList
is to be foundproviderRole
- The Role of the provider whose COTList
is to be found
LibertyManager.getListOfCOTs(String,String,String)
public static Set getListOfCOTs(String realm, String providerId, String providerRole)
realm
- The realm under which the entity resides.providerId
- The ID of the provider whose COTList
is to be foundproviderRole
- The Role of the provider whose COTList
is to be found
public static String getMetaAlias(String providerID, String providerRole)
getMetaAlias(String,String,String)
.
metaAlias
from provider ID under root realm.
providerID
- Provider's entity ID.providerRole
- Provider Role.
metaAlias
from provider IDLibertyManager.getMetaAlias(String,String,String)
public static String getMetaAlias(String realm, String providerID, String providerRole)
metaAlias
from provider ID under a realm.
realm
- The realm under which the entity resides.providerID
- Provider's entity ID.providerRole
- Provider Role.
metaAlias
from provider IDpublic static String getFederationDonePageURL(String providerID, String providerRole, HttpServletRequest request)
FederationDonePageURL
from the provider ID
under root realm.
providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
FederationDonePageURL
from the provider ID.LibertyManager.getFederationDonePageURL(String,String,String,HttpServletRequest)
public static String getFederationDonePageURL(String realm, String providerID, String providerRole, HttpServletRequest request)
FederationDonePageURL
from the provider ID
under a realm.
realm
- The realm under which the entity resides.providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
FederationDonePageURL
from the provider ID.LibertyManager.getFederationDonePageURL(String,String,String,HttpServletRequest)
public static String getTerminationDonePageURL(String providerID, String providerRole, HttpServletRequest request)
TerminationDonePageURL
from the provider ID
under root realm.
providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
TerminationDonePageURL
from the provider ID.LibertyManager.getTerminationDonePageURL(String,String,String,HttpServletRequest)
public static String getTerminationDonePageURL(String realm, String providerID, String providerRole, HttpServletRequest request)
TerminationDonePageURL
from the provider ID
under a realm.
realm
- The realm under which the entity resides.providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
TerminationDonePageURL
from the provider ID.public static String getTerminationURL(String providerID, String providerRole, HttpServletRequest request)
providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
LibertyManager.getTerminationURL(String,String,String,HttpServletRequest)
public static String getTerminationURL(String realm, String providerID, String providerRole, HttpServletRequest request)
realm
- The realm under which the entity resides.providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
public static String getNameRegistrationURL(String providerID, String providerRole, HttpServletRequest request)
NameRegistrationURL
.
providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
NameRegistrationURL
.LibertyManager.getNameRegistrationURL(String,String,String,HttpServletRequest)
public static String getNameRegistrationURL(String realm, String providerID, String providerRole, HttpServletRequest request)
NameRegistrationURL
.
realm
- The realm under which the entity resides.providerID
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
NameRegistrationURL
.public static String getErrorPageURL(String providerId, String providerRole, HttpServletRequest request)
getErrorPageURL(String,String,String,HttpServletRequest)
providerId
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
LibertyManager.getErrorPageURL(String,String,String,HttpServletRequest)
public static String getErrorPageURL(String realm, String providerId, String providerRole, HttpServletRequest request)
realm
- The realm under which the entity resides.providerId
- Provider's entity ID.providerRole
- Provider Role.request
- HTTP servlet request.
public static String getFederationHandlerURL(HttpServletRequest request)
FederationHandler
.
request
- HTTP servlet request
FederationHandler
.public static String getConsentHandlerURL(HttpServletRequest request)
ConsentHandler
.
request
- HTTP servlet request.
ConsentHandler
.public static boolean isLogoutSuccess(HttpServletRequest request)
request
- HTTP servlet request.
public static boolean isTerminationSuccess(HttpServletRequest request)
request
- HTTP servlet request.
public static boolean isFederationCancelled(HttpServletRequest request)
request
- HTTP servlet request.
public static boolean isTerminationCancelled(HttpServletRequest request)
request
- HTTP servlet request.
public static String getRealmByMetaAlias(String metaAlias)
<realm>/<any string without '/'> for non-root realm or /<any string without '/'> for root realm.
metaAlias
- The metaAlias.
public static String getNewRequest(HttpServletRequest request)
HttpRequestServlet
.
request
- HTTP servlet request.
HttpRequestServlet
.public static boolean setAuthnRequest(FSAuthnRequest request, String entityID)
request
- FSAuthnRequest
associated with a user
session.entityID
- Hosted Provider's entity ID
true
if the operation is successful;
false
otherwise.LibertyManager.setAuthnRequest(FSAuthnRequest,String,String)
public static boolean setAuthnRequest(FSAuthnRequest request, String realm, String entityID)
request
- FSAuthnRequest
associated with a user
session.realm
- the realm in which the entity residesentityID
- Hosted Provider's entity ID
true
if the operation is successful;
false
otherwise.public static String cleanQueryString(HttpServletRequest request)
public static String getSuccinctID(String entityID)
LibertyManager.getSuccinctID(String, String)
entityID
- provider's entity ID.
public static String getSuccinctID(String providerID, String providerRole)
providerID
- provider's entity ID.providerRole
- provider Role.
public static Set getRegisteredProviders(String userName, String hostProviderId, String providerRole)
getRegisteredProviders(String,String,String,String)
userName
- user ID.hostProviderId
- Hosted provider's entity ID.providerRole
- Hosted Provider Role.
LibertyManager.getRegisteredProviders(String,String,String,String)
public static Set getRegisteredProviders(String userName, String realm, String hostProviderId, String providerRole)
userName
- user ID.realm
- The realm under which the entity resides.hostProviderId
- Hosted provider's entity ID.providerRole
- Hosted Provider Role.
public static String getNameRegistrationProviderIDKey()
public static boolean isNameRegistrationCancelled(HttpServletRequest request)
request
- HTTP servlet request.
public static boolean isNameRegistrationSuccess(HttpServletRequest request)
request
- HTTP servlet request.
public static String getNameRegistrationDonePageURL(String providerID, String providerRole, HttpServletRequest request)
getNameRegistrationDonePageURL(
String,String,String,HttpServletRequest)
RegistrationDonePageURL
from the
providerID
under root realm.
providerID
- provider's entity ID.providerRole
- provider Role.request
- HTTP servlet request.
RegistrationDonePageURL
from the
providerID
.LibertyManager.getNameRegistrationDonePageURL(String,String,String,HttpServletRequest)
public static String getNameRegistrationDonePageURL(String realm, String providerID, String providerRole, HttpServletRequest request)
RegistrationDonePageURL
from the
providerID
under a realm.
realm
- The realm under which the entity resides.providerID
- provider's entity ID.providerRole
- provider Role.request
- HTTP servlet request.
RegistrationDonePageURL
from the
providerID
.public static String getAuthnRequestEnvelope(HttpServletRequest request)
request
- a HTTP servlet request
public static boolean isLECPProfile(HttpServletRequest request)
request
- a HTTP servlet request
true
if it is Liberty-enabled client and
proxy profilepublic static String getLECPHeaderName()
public static String getLECPContentType()
public static NodeList getDiscoveryBootStrapResourceOfferings(HttpServletRequest request, String providerID)
LibertyManager.getDiscoveryBootStrapResourceOfferings(
HttpServletRequest request, String providerID, String providerRole)
request
- HttpServletRequest
associated with a user
session.providerID
- Hosted Provider's entity ID
NodeList
Discovery Resource Offering Nodes,
null
if there is any failure or if there is not onepublic static NodeList getDiscoveryBootStrapResourceOfferings(HttpServletRequest request, String providerID, String providerRole)
request
- HttpServletRequest
associated with a user
session.providerID
- Hosted Provider's entity IDproviderRole
- Hosted Provider Role
NodeList
Discovery Resource Offering Nodes,
null
if there is any failure or if there is not onepublic static List getDiscoveryBootStrapCredentials(HttpServletRequest request, String providerID)
LibertyManager.getDiscoveryBootStrapCredentials(
HttpServletRequest request, String providerID, String providerRole)
request
- HttpServletRequest
associated with a user
session.providerID
- Hosted Provider's entity ID
List
of SecurityAssertions
,
null if there is any failure or if there is not onepublic static List getDiscoveryBootStrapCredentials(HttpServletRequest request, String providerID, String providerRole)
request
- HttpServletRequest
associated with a user
session.providerID
- Hosted Provider's entity IDproviderRole
- Hosted Provider Role
List
of SecurityAssertions
,
null
if there is any failure or if there is not onepublic static String getAuthnContext(HttpServletRequest request, String entityID)
request
- HttpServletRequest
associated with a user
session.entityID
- Hosted Provider's entity ID
null
if there is any failure, or no liberty
session is found.LibertyManager.getAuthnContext(HttpServletRequest,String,String)
public static String getAuthnContext(HttpServletRequest request, String realm, String entityID)
request
- HttpServletRequest
associated with a user
session.realm
- the realm in which the provider residesentityID
- Hosted Provider's entity ID
null
if there is any failure, or no liberty
session is found.public static FSAccountFedInfo getAccountFedInfo(HttpServletRequest request, String entityID)
request
- HttpServletRequest
associated with a user
session.entityID
- Hosted Provider's entity ID
FSAccountFedInfo
associated with this session.
null
if there is any failure, or no liberty session
is found.LibertyManager.getAccountFedInfo(HttpServletRequest,String,String,String)
public static FSAccountFedInfo getAccountFedInfo(HttpServletRequest request, String realm, String entityID, String providerRole)
request
- HttpServletRequest
associated with a user
session.realm
- the realm in which the provider residesentityID
- Hosted Provider's entity IDproviderRole
- the role of the provider
FSAccountFedInfo
associated with this session.
null
if there is any failure, or no liberty session
is found.public static String getProviderRole(String metaAlias)
providerRole
from the ProviderAlias
using meta Mgmt
calls.
metaAlias
- The metaAlias
of the provider
providerRole
corresponding to the
metaAlias
.public static NameIdentifier getMappedNameIdentifier(String hostedSPMetaAlias, Object ssoToken, String remoteSPEntityID)
NameIdentifier
between the IDP and
the other SP for the same principal. This method should
be used by the code on the hosted SP, where the user
has logged in, and has an account linking with the IDP.
Futhermore, the same principal has an account linking
between his/her other (remote) SP account and the IDP
account.
hostedSPMetaAlias
- The metaAlias
of
the local service provider.ssoToken
- The session token of the logged-
in user on the local service provider.remoteSPEntityID
- The entity ID of the remote
service provider. In other words, it is the targeted
name space for the returned name identifier.
NameIdentifier
of the same principal
but original established between the remote SP and
the IDP
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |