]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.api/src/org/argeo/api/cms/CmsSessionId.java
1 package org
.argeo
.api
.cms
;
5 import javax
.security
.auth
.Subject
;
8 * The ID of a {@link CmsSession}, which must be available in the private
9 * credentials of an authenticated {@link Subject}.
11 public class CmsSessionId
{
12 private final UUID uuid
;
14 public CmsSessionId(UUID value
) {
16 throw new IllegalArgumentException("Value cannot be null");
20 public UUID
getUuid() {
25 public int hashCode() {
26 return uuid
.hashCode();
30 public boolean equals(Object obj
) {
31 return obj
instanceof CmsSessionId
&& ((CmsSessionId
) obj
).getUuid().equals(uuid
);
35 public String
toString() {
36 return "Node Session " + uuid
;