Improve integration of authentication.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / CmsSession.java
index 118f875891a8782ed8248d6633b730bb689cc600..0785430205ca6a683654548c556582b9824a5cee 100644 (file)
@@ -1,6 +1,7 @@
 package org.argeo.cms.auth;
 
 import java.time.ZonedDateTime;
+import java.util.Locale;
 import java.util.UUID;
 
 import javax.naming.ldap.LdapName;
@@ -8,6 +9,7 @@ import javax.naming.ldap.LdapName;
 import org.argeo.naming.LdapAttrs;
 import org.osgi.service.useradmin.Authorization;
 
+/** An authenticated user session. */
 public interface CmsSession {
        final static String USER_DN = LdapAttrs.DN;
        final static String SESSION_UUID = LdapAttrs.entryUUID.name();
@@ -26,8 +28,11 @@ public interface CmsSession {
        boolean isAnonymous();
 
        ZonedDateTime getCreationTime();
+
        ZonedDateTime getEnd();
 
+       Locale getLocale();
+
        boolean isValid();
 
        // public Session getDataSession(String cn, String workspace, Repository