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.Logger
logger
-
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 int
addEntry(java.lang.String sessionId, java.lang.String ip, java.lang.String uid, java.lang.String group)
long
getBeginTime(java.lang.String sessionId)
java.lang.String
getGroup(java.lang.String sessionId)
java.lang.String
getIP(java.lang.String sessionId)
java.util.Enumeration<java.lang.String>
getSessionIDs()
int
getSize()
long
getTimeToLive()
java.lang.String
getUID(java.lang.String sessionId)
int
removeEntry(java.lang.String sessionId)
boolean
sessionExists(java.lang.String sessionId)
void
shutdown()
-
-
-
Constructor Detail
-
LDAPSecurityDomainSessionTable
public LDAPSecurityDomainSessionTable(long timeToLive) throws ELdapException, EBaseException
- Throws:
ELdapException
EBaseException
-
-
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:
addEntry
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
removeEntry
public int removeEntry(java.lang.String sessionId) throws java.lang.Exception
- Specified by:
removeEntry
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
sessionExists
public boolean sessionExists(java.lang.String sessionId) throws java.lang.Exception
- Specified by:
sessionExists
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
getSessionIDs
public java.util.Enumeration<java.lang.String> getSessionIDs() throws java.lang.Exception
- Specified by:
getSessionIDs
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
getIP
public java.lang.String getIP(java.lang.String sessionId) throws java.lang.Exception
- Specified by:
getIP
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
getUID
public java.lang.String getUID(java.lang.String sessionId) throws java.lang.Exception
- Specified by:
getUID
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
getGroup
public java.lang.String getGroup(java.lang.String sessionId) throws java.lang.Exception
- Specified by:
getGroup
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
getBeginTime
public long getBeginTime(java.lang.String sessionId) throws java.lang.Exception
- Specified by:
getBeginTime
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
getTimeToLive
public long getTimeToLive()
- Specified by:
getTimeToLive
in interfaceISecurityDomainSessionTable
-
getSize
public int getSize() throws java.lang.Exception
- Specified by:
getSize
in interfaceISecurityDomainSessionTable
- Throws:
java.lang.Exception
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceISecurityDomainSessionTable
-
-