[java-opensaml] branch main updated: Add a LogoutMessage marker for applying rules to requests and responses.

Scott Cantor cantor.2 at osu.edu
Wed Dec 6 19:48:21 UTC 2023


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

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

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=0e1ee5ef1c7db070e3a034cd14da7bca9bf9ca5e

The following commit(s) were added to refs/heads/main by this push:
     new 0e1ee5ef1 Add a LogoutMessage marker for applying rules to requests and responses.
0e1ee5ef1 is described below

commit 0e1ee5ef1c7db070e3a034cd14da7bca9bf9ca5e
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Dec 6 14:48:17 2023 -0500

    Add a LogoutMessage marker for applying rules to requests and responses.
---
 .../opensaml/saml/saml2/core/LogoutMessage.java    | 28 ++++++++++++++++++++++
 .../opensaml/saml/saml2/core/LogoutRequest.java    |  2 +-
 .../opensaml/saml/saml2/core/LogoutResponse.java   |  2 +-
 3 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutMessage.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutMessage.java
new file mode 100644
index 000000000..3029b2bc3
--- /dev/null
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutMessage.java
@@ -0,0 +1,28 @@
+/*
+ * 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 org.opensaml.saml.saml2.core;
+
+/**
+ * Marker interface for {@link LogoutRequest} and {@link LogoutResponse}, allowing
+ * components to enforce requirements for one or the other.
+ * 
+ * @since 5.1.0
+ */
+public interface LogoutMessage extends RequestAbstractType {
+
+}
\ No newline at end of file
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutRequest.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutRequest.java
index b55b759bd..8fe085a98 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutRequest.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutRequest.java
@@ -33,7 +33,7 @@ import net.shibboleth.shared.annotation.constraint.NotEmpty;
 /**
  * SAML 2.0 Core LogoutRequest.
  */
-public interface LogoutRequest extends RequestAbstractType {
+public interface LogoutRequest extends RequestAbstractType, LogoutMessage {
     
     /** Element local name. */
     @Nonnull @NotEmpty static final String DEFAULT_ELEMENT_LOCAL_NAME = "LogoutRequest";
diff --git a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutResponse.java b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutResponse.java
index 9e87170cc..9c5fc2823 100644
--- a/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutResponse.java
+++ b/opensaml-saml-api/src/main/java/org/opensaml/saml/saml2/core/LogoutResponse.java
@@ -28,7 +28,7 @@ import net.shibboleth.shared.annotation.constraint.NotEmpty;
 /**
  * SAML 2.0 Core LogoutResponse.
  */
-public interface LogoutResponse extends StatusResponseType {
+public interface LogoutResponse extends StatusResponseType, LogoutMessage {
 
     /** Element local name. */
     @Nonnull @NotEmpty static final String DEFAULT_ELEMENT_LOCAL_NAME = "LogoutResponse";

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


More information about the commits mailing list