[java-identity-provider COMMIT] in /trunk/idp-consent/src/main/java/net/shibboleth/idp/consent: Consent.java storage/...

noreply at shibboleth.net noreply at shibboleth.net
Wed Nov 12 11:46:26 EST 2014


Author: tzeller
Date: Wed Nov 12 11:46:26 2014
New Revision: 6887

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6887&view=rev
Log:
Cleanup.

Modified:
    trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/Consent.java
    trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/storage/ConsentSerializer.java

Modified: trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/Consent.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/Consent.java?rev=6887&r1=6886&r2=6887&view=diff
==============================================================================
--- trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/Consent.java (original)
+++ trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/Consent.java Wed Nov 12 11:46:26 2014
@@ -32,7 +32,8 @@
 /**
  * Represents consent.
  * 
- * TODO details
+ * A consent object consists of an identifier, a value (usually a hash) representing the thing being consented to, and a
+ * boolean which indicates whether consent is approved or denied.
  */
 public class Consent extends AbstractIdentifiableInitializableComponent {
 

Modified: trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/storage/ConsentSerializer.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/storage/ConsentSerializer.java?rev=6887&r1=6886&r2=6887&view=diff
==============================================================================
--- trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/storage/ConsentSerializer.java (original)
+++ trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/storage/ConsentSerializer.java Wed Nov 12 11:46:26 2014
@@ -89,7 +89,7 @@
             final JsonStructure st = reader.read();
 
             if (!(st instanceof JsonArray)) {
-                throw new IOException("Found invalid data structure while parsing AttributeConsent");
+                throw new IOException("Found invalid data structure while parsing consent");
             }
             final JsonArray array = (JsonArray) st;
 
@@ -134,7 +134,7 @@
         final JsonGenerator gen = generatorFactory.createGenerator(sink);
 
         gen.writeStartArray();
-        for (Consent consent : consents.values()) {
+        for (final Consent consent : consents.values()) {
             gen.writeStartObject();
             gen.write(ID_FIELD, consent.getId());
             if (consent.getValue() != null) {



More information about the commits mailing list