You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by vt...@apache.org on 2004/02/27 07:09:25 UTC
svn commit: rev 6904 - incubator/directory/janus/trunk/authorization/impl/src/test/org/apache/janus/authorization
Author: vtence
Date: Thu Feb 26 22:09:24 2004
New Revision: 6904
Added:
incubator/directory/janus/trunk/authorization/impl/src/test/org/apache/janus/authorization/SSNPrincipal.java
Log:
o Migrating new authentication code from sandbox to main tree
Added: incubator/directory/janus/trunk/authorization/impl/src/test/org/apache/janus/authorization/SSNPrincipal.java
==============================================================================
--- (empty file)
+++ incubator/directory/janus/trunk/authorization/impl/src/test/org/apache/janus/authorization/SSNPrincipal.java Thu Feb 26 22:09:24 2004
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.janus.authorization;
+
+import org.apache.janus.authentication.realm.AbstractPrincipal;
+
+/**
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ */
+public class SSNPrincipal extends AbstractPrincipal
+{
+ public SSNPrincipal( String name )
+ {
+ super( name );
+ }
+
+ public boolean equals( Object o )
+ {
+ if ( this == o ) return true;
+ if ( !( o instanceof SSNPrincipal ) ) return false;
+ if ( !super.equals( o ) ) return false;
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ return super.hashCode();
+ }
+
+ public String toString()
+ {
+ return "SSNPrincipal: " + super.toString() + "";
+ }
+}