[java-identity-provider COMMIT] /trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver...
noreply at shibboleth.net
noreply at shibboleth.net
Mon Jun 3 10:27:02 EDT 2013
Author: rdw
Date: Mon Jun 3 10:27:02 2013
New Revision: 4511
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4511&view=rev
Log:
IDP-207 Add some more metadata needed for attribute filtering and resolution. AuthenticationMethod and issuer/requester metadata
Modified:
trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AttributeRecipientContext.java
Modified: trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AttributeRecipientContext.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AttributeRecipientContext.java?rev=4511&r1=4510&r2=4511&view=diff
==============================================================================
--- trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AttributeRecipientContext.java (original)
+++ trunk/idp-attribute-resolver-api/src/main/java/net/shibboleth/idp/attribute/resolver/AttributeRecipientContext.java Mon Jun 3 10:27:02 2013
@@ -21,6 +21,7 @@
import javax.annotation.concurrent.NotThreadSafe;
import org.opensaml.messaging.context.BaseContext;
+import org.opensaml.saml.saml2.metadata.EntityDescriptor;
/** A context which carries Information about the Recipient of the attribute. This is the
* principal, the "self" entityID and the RecipientEntityID. */
@@ -35,6 +36,15 @@
/** The other entityID. This is required by some resolvers and injected during setup. */
private String attributeRecipientID;
+
+ /** How was the principal Authenticated? */
+ private String principalAuthenticationMethod;
+
+ /** The issuer's metadata. */
+ private EntityDescriptor issuerMetadata;
+
+ /** The issuer's metadata. */
+ private EntityDescriptor requesterMetadata;
/** Gets the principal associated with this resolution.
*
@@ -83,4 +93,50 @@
@Nullable public void setAttributeRecipientID(@Nullable String value) {
attributeRecipientID = value;
}
+ /** Sets how the principal was authenticated.
+ * @return Returns the principalAuthenticationMethod.
+ */
+ @Nullable public String getPrincipalAuthenticationMethod() {
+ return principalAuthenticationMethod;
+ }
+
+ /** Gets how the principal was authenticated.
+ * @param method The principalAuthenticationMethod to set.
+ */
+ public void setPrincipalAuthenticationMethod(String method) {
+ this.principalAuthenticationMethod = method;
+ }
+
+ /**
+ * Return the metadata for the entity issuing the attributes.
+ * @return Returns the issuerMetadata.
+ */
+ public EntityDescriptor getIssuerMetadata() {
+ return issuerMetadata;
+ }
+
+ /**
+ * Sets the metadata for the entity issuing the attributes.
+ * @param metadata The issuerMetadata to set.
+ */
+ public void setIssuerMetadata(EntityDescriptor metadata) {
+ this.issuerMetadata = metadata;
+ }
+
+ /**
+ * Return the metadata for the entity requesting the attributes.
+ * @return Returns the requesterMetadata.
+ */
+ public EntityDescriptor getRequesterMetadata() {
+ return requesterMetadata;
+ }
+
+ /**
+ * Sets the metadata for the entity requesting the attributes.
+ * @param metadata The requesterMetadata to set.
+ */
+ public void setRequesterMetadata(EntityDescriptor metadata) {
+ this.requesterMetadata = metadata;
+ }
+
}
More information about the commits
mailing list