public class AuthD extends Object implements ConfigurationListener
Modifier and Type | Field and Description |
---|---|
static String |
BUNDLE_NAME
Configured bundle name for auth service
|
static Debug |
debug
Debug instance for error / message logging
|
String |
defaultAuthLevel
Default auth level for module
|
Modifier and Type | Method and Description |
---|---|
void |
destroySession(SessionID sid)
Destroy sessionfor given
SessionID |
AMIdentityRepository |
getAMIdentityRepository(String orgDN)
Returns the OpenAM Identity Repository for an organization.
|
static AuthD |
getAuth()
Returns Authenticator singleton instance.
|
String |
getAuthenticatorForName(String moduleName)
Returns an Authenticator for a specific module name.
|
Iterator |
getAuthenticators()
Return configured Authenticators
|
long |
getDefaultSleepTime()
Return default sleep time
|
AMIdentity |
getIdentity(IdType idType,
String idName,
String orgName)
Returns the
AMIdentity object for the given parameters. |
OrganizationConfigManager |
getOrgConfigManager(String orgDN)
Returns the Organization Configuration Manager for an organization.
|
String |
getOrgConfiguredAuthenticationChain(String orgDN)
Returns the authentication service or chain configured for the
given organization.
|
String |
getOrgDN(String userOrg)
Returns the organization DN.
|
Map |
getOrgServiceAttributes(String orgDN,
String serviceName)
Returns attribute map of the specified service in the specified
organization.
|
String |
getPlatformLocale()
Return configured PlatformLocale
|
ResourceBundle |
getResourceBundle(String locale)
Returns Resource bundle of a locale.
|
AMStoreConnection |
getSDK()
Returns connection for AM store.
|
javax.servlet.ServletContext |
getServletContext()
Returns the Servlet Context.
|
InternalSession |
getSession(javax.servlet.http.HttpServletRequest req)
Returns the session associated with an HTTP Servlet Request.
|
static InternalSession |
getSession(SessionID sessionId)
Returns the session associated with a session ID.
|
static InternalSession |
getSession(String sessId)
Returns the session associated with a session ID.
|
SSOToken |
getSSOAuthSession()
Return current sso session for auth
|
boolean |
isGotoUrlValid(String url,
String orgDN)
Checks whether an input URL is valid in an organization.
|
boolean |
isSpecialUser(String dn)
Returns
true if distinguished user name is a special user
DN. |
boolean |
isSuperAdmin(String dn)
Returns
true if distinguished user name is a super
administrator DN. |
boolean |
isSuperUser(String dn)
Returns
true if and only if the user name belongs to a
super user |
void |
logIt(String[] s,
int type,
String messageName,
Hashtable ssoProperties)
Writes a log record.
|
void |
logLogout(SSOToken ssot)
Log Logout status
|
static InternalSession |
newSession(String domain,
boolean stateless)
Creates a new session.
|
static InternalSession |
newSession(String domain,
boolean stateless,
boolean checkCts)
Creates a new session.
|
void |
notifyChanges()
This method will be call if configuration changed.
|
String |
processURL(String URL,
javax.servlet.http.HttpServletRequest servletRequest)
Returns the dynamic replacement of the URL from the Success or Failure
URLs.
|
void |
setOrgServiceAttributes(String orgDN,
String serviceName,
Map<String,Set<String>> attributes)
Sets the provided attribute map on the specified service in the specified organization.
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
Sets the Servlet Context.
|
public static final String BUNDLE_NAME
public static final Debug debug
public String defaultAuthLevel
public Map getOrgServiceAttributes(String orgDN, String serviceName)
orgDN
- Organization DN in which the service exists.serviceName
- Service name of which the attributes are retrieved.public void setOrgServiceAttributes(String orgDN, String serviceName, Map<String,Set<String>> attributes) throws IdRepoException, SSOException
orgDN
- Organization DN in which the service exists.serviceName
- Service name of which the attributes are retrieved.attributes
- The attributes to set on the service.IdRepoException
SSOException
public static AuthD getAuth()
public void destroySession(SessionID sid)
SessionID
sid
- SessionID
to be destroyedpublic static InternalSession newSession(String domain, boolean stateless)
domain
- Domain Name.InternalSession
public static InternalSession newSession(String domain, boolean stateless, boolean checkCts)
domain
- Domain Name.InternalSession
public static InternalSession getSession(String sessId)
sessId
- Session ID.InternalSession
associated with a session ID.public static InternalSession getSession(SessionID sessionId)
sessionId
- Session ID.InternalSession
associated with a session ID.public InternalSession getSession(javax.servlet.http.HttpServletRequest req)
req
- HTTP Servlet Request.InternalSession
associated with
anHTTP Servlet Request.public String getAuthenticatorForName(String moduleName)
moduleName
- Module name example LDAP
.public Iterator getAuthenticators()
public String getPlatformLocale()
public void logLogout(SSOToken ssot)
public void logIt(String[] s, int type, String messageName, Hashtable ssoProperties)
s
- Array of data information for the log record.type
- Type of log either LOG_ERROR
or
LOG_ACCESS
.messageName
- Message ID for the log record.ssoProperties
- Single Sign On Properties to be written to the
log record. If this is null
, properties will be
retrieved from administrator Single Sign On Token.public AMStoreConnection getSDK()
public SSOToken getSSOAuthSession()
public void notifyChanges()
ConfigurationListener
notifyChanges
in interface ConfigurationListener
public boolean isSuperAdmin(String dn)
true
if distinguished user name is a super
administrator DN.dn
- Distinguished name of user.true
if user is super administrator.public boolean isSuperUser(String dn)
true
if and only if the user name belongs to a
super userdn
- DN of the usertrue
if the user is an admin user.public boolean isSpecialUser(String dn)
true
if distinguished user name is a special user
DN.dn
- Distinguished name of user.true
if user is a special user.public ResourceBundle getResourceBundle(String locale)
locale
- Locale.public long getDefaultSleepTime()
public String getOrgDN(String userOrg)
If the organization name matches the root suffix or has the root suffix in it then the DN will be returned as string. Otherwise the DN will be constructed from the organization Name DN and the root suffix DN.
userOrg
- Organization Namepublic String processURL(String URL, javax.servlet.http.HttpServletRequest servletRequest)
URL
- servletRequest
- public void setServletContext(javax.servlet.ServletContext servletContext)
servletContext
- Servlet Context to be set.public javax.servlet.ServletContext getServletContext()
public AMIdentityRepository getAMIdentityRepository(String orgDN)
orgDN
- name of the organizationpublic OrganizationConfigManager getOrgConfigManager(String orgDN)
orgDN
- Name of the organization.public AMIdentity getIdentity(IdType idType, String idName, String orgName) throws AuthException
AMIdentity
object for the given parameters.
If there is no such identity, or there is more then one matching identity,
then an AuthException will be thrown.idType
- Identity Type.idName
- Identity Name.orgName
- organization name.AMIdentity
object.AuthException
- if there was no result, or if there was more results
then one.public String getOrgConfiguredAuthenticationChain(String orgDN)
orgDN
- organization DN.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.