AttributeRule interface for objects returned by AAP
authorgilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 28 Oct 2004 13:14:55 +0000 (13:14 +0000)
committergilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 28 Oct 2004 13:14:55 +0000 (13:14 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1141 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/common/AttributeRule.java [new file with mode: 0644]

diff --git a/src/edu/internet2/middleware/shibboleth/common/AttributeRule.java b/src/edu/internet2/middleware/shibboleth/common/AttributeRule.java
new file mode 100644 (file)
index 0000000..d363f75
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * AttributeRule.java
+ * 
+ * Interface to apply AAP, based on IAttributeRule in C++ shib.h
+ * 
+ * Notably implemented by XMLAttributeRuleImpl in ...target.XMLAAPImpl
+ * 
+ * --------------------
+ * Copyright 2002, 2004 
+ * University Corporation for Advanced Internet Development, Inc. 
+ * All rights reserved
+ * [Thats all we have to say to protect ourselves]
+ * Your permission to use this code is governed by "The Shibboleth License".
+ * A copy may be found at http://shibboleth.internet2.edu/license.html
+ * [Nothing in copyright law requires license text in every file.]
+ */
+package edu.internet2.middleware.shibboleth.common;
+
+import org.opensaml.SAMLAttribute;
+
+import edu.internet2.middleware.shibboleth.metadata.EntityDescriptor;
+
+/**
+ * @author Howard Gilbert
+ */
+public interface AttributeRule {
+       String getName();
+       String getNamespace();
+       String getAlias();
+       String getHeader();
+       
+       void apply(EntityDescriptor originSite, SAMLAttribute attribute);
+
+}