[java-identity-provider COMMIT] /trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AuthenticationWorkflowDes...

noreply at shibboleth.net noreply at shibboleth.net
Wed Jul 17 17:28:23 EDT 2013


Author: scantor
Date: Wed Jul 17 17:28:23 2013
New Revision: 4593

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4593&view=rev
Log:
Add event serializer property.

Modified:
    trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AuthenticationWorkflowDescriptor.java

Modified: trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AuthenticationWorkflowDescriptor.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AuthenticationWorkflowDescriptor.java?rev=4593&r1=4592&r2=4593&view=diff
==============================================================================
--- trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AuthenticationWorkflowDescriptor.java (original)
+++ trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AuthenticationWorkflowDescriptor.java Wed Jul 17 17:28:23 2013
@@ -22,7 +22,10 @@
 import java.util.Set;
 
 import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
 import javax.security.auth.Subject;
+
+import org.opensaml.storage.StorageSerializer;
 
 import com.google.common.base.Objects;
 
@@ -60,6 +63,9 @@
     
     /** Supported principals, indexed by type, that the workflow can produce. */
     @Nonnull private Subject supportedPrincipals;
+    
+    /** Custom serializer for the resulting events generated by this workflow. */
+    @Nullable private StorageSerializer<AuthenticationEvent> eventSerializer;
 
     /**
      * Constructor.
@@ -175,6 +181,24 @@
         supportedPrincipals.getPrincipals().clear();
         supportedPrincipals.getPrincipals().addAll(principals);
     }
+
+    /**
+     * Get the custom serializer for events produced by this workflow.
+     * 
+     * @return the custom serializer, or null
+     */
+    @Nullable public StorageSerializer<AuthenticationEvent> getEventSerializer() {
+        return eventSerializer;
+    }
+
+    /**
+     * Set the custom serializer for events produced by this workflow.
+     * 
+     * @param serializer the custom serializer, or null
+     */
+    public void setEventSerializer(@Nullable final StorageSerializer<AuthenticationEvent> serializer) {
+        eventSerializer = serializer;
+    }
     
     /** {@inheritDoc} */
     public int hashCode() {



More information about the commits mailing list