Improve CMS security layer documentation.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / CmsSessionId.java
index 875328974b4f1199226adfeb816d3d953b3e8733..cc435aeb8f7b568e6c59a1be69f3cb46f53ac07c 100644 (file)
@@ -2,14 +2,18 @@ package org.argeo.cms.auth;
 
 import java.util.UUID;
 
-import org.argeo.cms.CmsException;
+import javax.security.auth.Subject;
 
+/**
+ * The ID of a {@link CmsSession}, which must be available in the private
+ * credentials of an authenticated {@link Subject}.
+ */
 public class CmsSessionId {
        private final UUID uuid;
 
        public CmsSessionId(UUID value) {
                if (value == null)
-                       throw new CmsException("value cannot be null");
+                       throw new IllegalArgumentException("Value cannot be null");
                this.uuid = value;
        }