harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r570011 - /harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/PrincipalComparator.java
Date Mon, 27 Aug 2007 06:07:55 GMT
Author: leoli
Date: Sun Aug 26 23:07:55 2007
New Revision: 570011

URL: http://svn.apache.org/viewvc?rev=570011&view=rev
Log:
[classlib][auth]Add missing interface PrinciplalComparator in org.apache.harmony.auth package.

Added:
    harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/PrincipalComparator.java
  (with props)

Added: harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/PrincipalComparator.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/PrincipalComparator.java?rev=570011&view=auto
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/PrincipalComparator.java
(added)
+++ harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/PrincipalComparator.java
Sun Aug 26 23:07:55 2007
@@ -0,0 +1,37 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You 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.harmony.auth;
+
+import javax.security.auth.Subject;
+
+/**
+ * The implementation for this interface provides a way to determine whether
+ * this object implies a specified subject. Objects that implements
+ * java.security.Principle normally implement this interface. *
+ */
+public interface PrincipalComparator {
+
+    /**
+     * Determine whether this object implies the specified subject.
+     * 
+     * @param subject
+     *            The subject to be compared.
+     * @return true if this object implies the subject.
+     */
+    public boolean implies(Subject subject);
+}

Propchange: harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/PrincipalComparator.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message