[java-identity-provider COMMIT] /trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/attribute/encoding/Attribut...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Jun 12 05:41:16 EDT 2014
Author: rdw
Date: Thu Jun 12 05:41:16 2014
New Revision: 6079
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6079&view=rev
Log:
IDP-376 Start to separate the Attribute type (requested or normal) out from the encoders to make mapping more general. Missed checkin
Modified:
trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/attribute/encoding/AttributeMapperFactory.java
Modified: trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/attribute/encoding/AttributeMapperFactory.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/attribute/encoding/AttributeMapperFactory.java?rev=6079&r1=6078&r2=6079&view=diff
==============================================================================
--- trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/attribute/encoding/AttributeMapperFactory.java (original)
+++ trunk/idp-saml-api/src/main/java/net/shibboleth/idp/saml/attribute/encoding/AttributeMapperFactory.java Thu Jun 12 05:41:16 2014
@@ -19,10 +19,10 @@
import javax.annotation.Nonnull;
-import org.opensaml.saml.saml2.core.Attribute;
-
import net.shibboleth.idp.attribute.IdPAttribute;
import net.shibboleth.idp.saml.attribute.mapping.AbstractSAMLAttributeMapper;
+
+import org.opensaml.saml.saml2.core.Attribute;
/**
* An interface which is implemented by encoders which encode attributes which can be reverse mapped.
@@ -33,15 +33,15 @@
public interface AttributeMapperFactory<S extends Attribute, I extends IdPAttribute> {
/**
- * This method creates an attribute mapper to go from a SAML Attribute (or derivative) to an IdP Attribute (or
+ * This populated the attribute mapper to go from a SAML Attribute (or derivative) to an IdP Attribute (or
* derivative) such that applying the output of the mapper to the encoder will produce the name attribute
* (and vice versa).
*
- * <p>The created mapper <em>must not</em> have any associated (IdP) Attribute names and <em>must</em> implement
+ * <p>The populated mapper <em>must not</em> have any associated (IdP) Attribute names and <em>must</em> implement
* {@link Object#equals(Object)} and {@link Object#hashCode()}.</p>
*
- * @return the mapper.
+ * @param mapper the mapper.
*/
- @Nonnull public AbstractSAMLAttributeMapper<S, I> getRequestedMapper();
+ @Nonnull public void populateAttributeMapper(AbstractSAMLAttributeMapper<S, I> mapper);
}
More information about the commits
mailing list