AttributeRule interface for objects returned by AAP
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / common / AttributeRule.java
1 /*
2  * AttributeRule.java
3  * 
4  * Interface to apply AAP, based on IAttributeRule in C++ shib.h
5  * 
6  * Notably implemented by XMLAttributeRuleImpl in ...target.XMLAAPImpl
7  * 
8  * --------------------
9  * Copyright 2002, 2004 
10  * University Corporation for Advanced Internet Development, Inc. 
11  * All rights reserved
12  * [Thats all we have to say to protect ourselves]
13  * Your permission to use this code is governed by "The Shibboleth License".
14  * A copy may be found at http://shibboleth.internet2.edu/license.html
15  * [Nothing in copyright law requires license text in every file.]
16  */
17 package edu.internet2.middleware.shibboleth.common;
18
19 import org.opensaml.SAMLAttribute;
20
21 import edu.internet2.middleware.shibboleth.metadata.EntityDescriptor;
22
23 /**
24  * @author Howard Gilbert
25  */
26 public interface AttributeRule {
27         String getName();
28         String getNamespace();
29         String getAlias();
30         String getHeader();
31         
32         void apply(EntityDescriptor originSite, SAMLAttribute attribute);
33
34 }