[java-opensaml COMMIT] /trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java
noreply at shibboleth.net
noreply at shibboleth.net
Mon Apr 28 15:51:01 EDT 2014
Author: scantor
Date: Mon Apr 28 15:51:01 2014
New Revision: 3822
URL: http://svn.shibboleth.net/view/java-opensaml?rev=3822&view=rev
Log:
Add artifact indicator.
Modified:
trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java
Modified: trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java?rev=3822&r1=3821&r2=3822&view=diff
==============================================================================
--- trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java (original)
+++ trunk/opensaml-saml-api/src/main/java/org/opensaml/saml/common/binding/BindingDescriptor.java Mon Apr 28 15:51:01 2014
@@ -62,9 +62,13 @@
/** Identifies a binding that is direct request/response between two parties (i.e., SOAP). */
private boolean synchronous;
+ /** Identifies a binding that relies on SAML artifacts. */
+ private boolean artifact;
+
/** Constructor. */
public BindingDescriptor() {
synchronous = false;
+ artifact = false;
activationCondition = Predicates.alwaysTrue();
}
@@ -94,6 +98,24 @@
*/
public void setSynchronous(final boolean flag) {
synchronous = flag;
+ }
+
+ /**
+ * Get whether the binding is artifact-based.
+ *
+ * @return true iff the binding is artifact-based
+ */
+ public boolean isArtifact() {
+ return artifact;
+ }
+
+ /**
+ * Set whether the binding is artifact-based.
+ *
+ * @param flag flag to set
+ */
+ public void setArtifact(final boolean flag) {
+ artifact = flag;
}
/** {@inheritDoc} */
@@ -131,6 +153,7 @@
public String toString() {
return Objects.toStringHelper(this).add("bindingId", getId())
.add("synchronous", synchronous)
+ .add("artifact", artifact)
.toString();
}
More information about the commits
mailing list