Package com.netscape.cmscore.session
Class LDAPSecurityDomainSessionTable
- java.lang.Object
-
- com.netscape.cmscore.session.LDAPSecurityDomainSessionTable
-
- All Implemented Interfaces:
ISecurityDomainSessionTable
public class LDAPSecurityDomainSessionTable extends java.lang.Object implements ISecurityDomainSessionTable
This object stores the values for IP, uid and group based on the cookie id in LDAP. Entries are stored under ou=Security Domain, ou=sessions, $basedn
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger-
Fields inherited from interface com.netscape.certsrv.base.ISecurityDomainSessionTable
FAILURE, SUCCESS
-
-
Constructor Summary
Constructors Constructor Description LDAPSecurityDomainSessionTable(long timeToLive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddEntry(java.lang.String sessionId, java.lang.String ip, java.lang.String uid, java.lang.String group)longgetBeginTime(java.lang.String sessionId)java.lang.StringgetGroup(java.lang.String sessionId)java.lang.StringgetIP(java.lang.String sessionId)java.util.Enumeration<java.lang.String>getSessionIDs()intgetSize()longgetTimeToLive()java.lang.StringgetUID(java.lang.String sessionId)intremoveEntry(java.lang.String sessionId)booleansessionExists(java.lang.String sessionId)voidshutdown()
-
-
-
Constructor Detail
-
LDAPSecurityDomainSessionTable
public LDAPSecurityDomainSessionTable(long timeToLive) throws ELdapException, EBaseException- Throws:
ELdapExceptionEBaseException
-
-
Method Detail
-
addEntry
public int addEntry(java.lang.String sessionId, java.lang.String ip, java.lang.String uid, java.lang.String group) throws java.lang.Exception- Specified by:
addEntryin interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
removeEntry
public int removeEntry(java.lang.String sessionId) throws java.lang.Exception- Specified by:
removeEntryin interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
sessionExists
public boolean sessionExists(java.lang.String sessionId) throws java.lang.Exception- Specified by:
sessionExistsin interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
getSessionIDs
public java.util.Enumeration<java.lang.String> getSessionIDs() throws java.lang.Exception- Specified by:
getSessionIDsin interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
getIP
public java.lang.String getIP(java.lang.String sessionId) throws java.lang.Exception- Specified by:
getIPin interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
getUID
public java.lang.String getUID(java.lang.String sessionId) throws java.lang.Exception- Specified by:
getUIDin interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
getGroup
public java.lang.String getGroup(java.lang.String sessionId) throws java.lang.Exception- Specified by:
getGroupin interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
getBeginTime
public long getBeginTime(java.lang.String sessionId) throws java.lang.Exception- Specified by:
getBeginTimein interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
getTimeToLive
public long getTimeToLive()
- Specified by:
getTimeToLivein interfaceISecurityDomainSessionTable
-
getSize
public int getSize() throws java.lang.Exception- Specified by:
getSizein interfaceISecurityDomainSessionTable- Throws:
java.lang.Exception
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceISecurityDomainSessionTable
-
-