X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Fauth%2FCmsSessionId.java;h=cc435aeb8f7b568e6c59a1be69f3cb46f53ac07c;hb=a1e5c8447beec2b896b0a03e38a4c17608a4b85d;hp=875328974b4f1199226adfeb816d3d953b3e8733;hpb=02a6354c17ddb160513580e9e3c7826d9475b177;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/auth/CmsSessionId.java b/org.argeo.cms/src/org/argeo/cms/auth/CmsSessionId.java index 875328974..cc435aeb8 100644 --- a/org.argeo.cms/src/org/argeo/cms/auth/CmsSessionId.java +++ b/org.argeo.cms/src/org/argeo/cms/auth/CmsSessionId.java @@ -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; }