]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.node.api/src/org/argeo/node/security/UserPrincipal.java
Improve and clean authentication. Reintroduce anonymous login context.
[lgpl/argeo-commons.git] / org.argeo.node.api / src / org / argeo / node / security / UserPrincipal.java
diff --git a/org.argeo.node.api/src/org/argeo/node/security/UserPrincipal.java b/org.argeo.node.api/src/org/argeo/node/security/UserPrincipal.java
deleted file mode 100644 (file)
index e65c4f8..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.argeo.node.security;
-
-import java.security.Principal;
-
-import javax.naming.ldap.LdapName;
-
-import org.argeo.node.NodeConstants;
-
-/** Marker for logged in users. */
-@Deprecated
-public final class UserPrincipal implements Principal {
-       private final String name = NodeConstants.ROLE_USER;
-
-       @Override
-       public String getName() {
-               return name;
-       }
-
-       @Override
-       public int hashCode() {
-               return name.hashCode();
-       }
-
-       @Override
-       public boolean equals(Object obj) {
-               return this == obj;
-       }
-
-       @Override
-       public String toString() {
-               return name.toString();
-       }
-
-       public LdapName getLdapName(){
-               return NodeSecurityUtils.ROLE_USER_NAME;
-       }
-
-}