]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - cms/auth/CmsSessionId.java
1 package org
.argeo
.cms
.auth
;
5 import javax
.security
.auth
.Subject
;
7 import org
.argeo
.cms
.CmsException
;
10 * The ID of a {@link CmsSession}, which must be available in the private
11 * credentials of an authenticated {@link Subject}.
13 public class CmsSessionId
{
14 private final UUID uuid
;
16 public CmsSessionId(UUID value
) {
18 throw new CmsException("value cannot be null");
22 public UUID
getUuid() {
27 public int hashCode() {
28 return uuid
.hashCode();
32 public boolean equals(Object obj
) {
33 return obj
instanceof CmsSessionId
&& ((CmsSessionId
) obj
).getUuid().equals(uuid
);
37 public String
toString() {
38 return "Node Session " + uuid
;