[java-plugin-shibd] branch main updated: New lookup function needed for correlation.

Scott Cantor cantor.2 at osu.edu
Tue Apr 15 18:27:50 UTC 2025


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-plugin-shibd.

View the commit online:
http://git.shibboleth.net/view/?p=java-plugin-shibd.git;a=commit;h=e273596caccd9648b1775850c2427bb7b1cdb3b1

The following commit(s) were added to refs/heads/main by this push:
     new e273596  New lookup function needed for correlation.
e273596 is described below

commit e273596caccd9648b1775850c2427bb7b1cdb3b1
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Apr 15 14:27:47 2025 -0400

    New lookup function needed for correlation.
---
 .../MessageCorrelationIDLookupFunction.java        | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/sp-server-api/src/main/java/net/shibboleth/sp/profile/context/navigate/MessageCorrelationIDLookupFunction.java b/sp-server-api/src/main/java/net/shibboleth/sp/profile/context/navigate/MessageCorrelationIDLookupFunction.java
new file mode 100644
index 0000000..1aacff1
--- /dev/null
+++ b/sp-server-api/src/main/java/net/shibboleth/sp/profile/context/navigate/MessageCorrelationIDLookupFunction.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.sp.profile.context.navigate;
+
+import javax.annotation.Nullable;
+
+import org.opensaml.messaging.context.navigate.ContextDataLookupFunction;
+
+import net.shibboleth.sp.context.TokenConsumerContext;
+
+/**
+ * Lookup strategy for accessing message correlation ID in {@link TokenConsumerContext}.
+ */
+public class MessageCorrelationIDLookupFunction implements ContextDataLookupFunction<TokenConsumerContext,String> {
+
+    /** {@inheritDoc} */
+    @Nullable public String apply(@Nullable final TokenConsumerContext input) {
+        return input != null ? input.getMessageCorrelationID() : null;
+    }
+
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list