Package com.webmethods.portal.framework
Interface IAuthManager
- All Superinterfaces:
IComponent
,IComponentProvider
,IInitializable
,IURIResolver
Handles authentication logic for the
PortalSystem
-
Field Summary
Fields inherited from interface com.webmethods.portal.system.IComponentProvider
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
-
Method Summary
Modifier and TypeMethodDescriptionFactory to create a new authinfo objectgetAuthInfo
(HttpSession session) Return the current auth info for the sessionhandleAuth
(HttpServletRequest request) Create a defaultAuthInfo
object and associate it with the user's session.
Then Iterate through the registeredIAuthHandler
s until atrue
is returned.boolean
shouldReAuth
(HttpServletRequest request) Iterate through the registeredIAuthHandler
s.Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.IComponentProvider
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.system.IURIResolver
acquireURI, acquireURI
-
Method Details
-
handleAuth
Create a defaultAuthInfo
object and associate it with the user's session.
Then Iterate through the registeredIAuthHandler
s until atrue
is returned. At the end of this call, if authorization information was found, theAuthInfo
will be returned- Parameters:
request
-- Returns:
- Throws:
PortalException
-
shouldReAuth
Iterate through the registeredIAuthHandler
s. If the auth handler implements the IReAuthHandler interface, check if the auth handler wants the auth credentials to be reauthenticated.- Parameters:
request
- the HttpServletRequest to check- Returns:
true
if this request should re-authenticate the auth credentials,false
otherwise.- Throws:
PortalException
-
getAuthInfo
Return the current auth info for the session- Parameters:
session
- the session to get the auth info for- Returns:
- the auth info for the session or null if not found
- Throws:
PortalException
-
createAuthInfo
Factory to create a new authinfo object- Returns:
- the new auth info object
- Throws:
PortalException
-