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;
}