public class UserLoginManager extends GenericService
This class has been superceded by the atg.security.IdentityManager class (also atg.security.ProfileIdentityManager), which performs many of the same functions with a simpler API. This class is retained for backwards compatibility and, additionally, implements the new IdentityManager API so it may be used in that role as well. If you are implementing new code that needs authentication, you should consider using the IdentityManager (normally found at /atg/dynamo/security/IdentityManager in Nucleus) directly.
IdentityManager
,
ProfileIdentityManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
UserLoginManager() |
Modifier and Type | Method and Description |
---|---|
void |
doStartService()
This is called after a Service has been created, placed into the
naming hierarchy, and initialized with its configured property
values.
|
void |
doStopService()
This is called when a Service is required to shut down.
|
FormLoginSession |
getCurrentFormLoginSession(DynamoHttpServletRequest pRequest)
Return the current FormLoginSession object.
|
User |
getCurrentUser(DynamoHttpServletRequest pRequest)
Return the current User object.
|
java.lang.String |
getFormLoginSessionPath()
Returns The name in the nucleus hierarchy to look for a FormLoginSession
|
IdentityManager |
getIdentityManager(DynamoHttpServletRequest pRequest)
Returns the IdentityManager object that can be used to perform
various authentication jobs.
|
java.lang.String |
getIdentityManagerPath()
Returns the identity manager used for authentication and user
identity lookup.
|
java.lang.String |
getUserPath()
Returns The path in the Nucleus hierarchy which stores the User object
|
boolean |
loginCurrentUser(java.security.cert.Certificate pCertificate,
DynamoHttpServletRequest pRequest,
CertificateUserAuthority pCertificateUserAuthority)
Log in the current user object with a specific
CertificateUserAuthority.
|
boolean |
loginCurrentUser(java.lang.String pUserName,
java.lang.String pPasswordHash,
java.lang.Object pHashKey,
DynamoHttpServletRequest pRequest,
LoginUserAuthority pLoginUserAuthority)
Log in the current user object with a specific
LoginUserAuthority.
|
void |
setFormLoginSessionPath(java.lang.String pFormLoginSessionPath)
Sets The name in the nucleus hierarchy to look for a FormLoginSession
|
void |
setIdentityManagerPath(java.lang.String pIdentityManagerPath)
Changes the identity manager used for authentication and user
identity lookup.
|
void |
setUserPath(java.lang.String pUserPath)
Sets The path in the Nucleus hierarchy which stores the User object
|
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public void setUserPath(java.lang.String pUserPath)
public java.lang.String getUserPath()
public void setFormLoginSessionPath(java.lang.String pFormLoginSessionPath)
public java.lang.String getFormLoginSessionPath()
public void setIdentityManagerPath(java.lang.String pIdentityManagerPath)
public java.lang.String getIdentityManagerPath()
public User getCurrentUser(DynamoHttpServletRequest pRequest)
public boolean loginCurrentUser(java.lang.String pUserName, java.lang.String pPasswordHash, java.lang.Object pHashKey, DynamoHttpServletRequest pRequest, LoginUserAuthority pLoginUserAuthority)
getPasswordHasher()
.public boolean loginCurrentUser(java.security.cert.Certificate pCertificate, DynamoHttpServletRequest pRequest, CertificateUserAuthority pCertificateUserAuthority)
getCerticateParser()
.public FormLoginSession getCurrentFormLoginSession(DynamoHttpServletRequest pRequest)
public IdentityManager getIdentityManager(DynamoHttpServletRequest pRequest)
public void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting uppublic void doStopService() throws ServiceException
doStopService
in class GenericService
ServiceException
- if the Service had a problem shutting down