[java-identity-provider] branch master updated: Fix deprecated methods.

Scott Cantor cantor.2 at osu.edu
Thu Nov 21 14:08:43 EST 2019


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

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=75b64031cf86e274767f7c3a6b1ee3735169d834

The following commit(s) were added to refs/heads/master by this push:
       new  75b6403   Fix deprecated methods.
75b6403 is described below

commit 75b64031cf86e274767f7c3a6b1ee3735169d834
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Nov 21 14:08:40 2019 -0500

    Fix deprecated methods.
---
 .../shibboleth/idp/saml/audit/impl/SessionIndexAuditExtractor.java    | 4 ++--
 .../shibboleth/idp/saml/saml2/profile/impl/ProcessLogoutRequest.java  | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/audit/impl/SessionIndexAuditExtractor.java b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/audit/impl/SessionIndexAuditExtractor.java
index 2a1932c..a2b5a08 100644
--- a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/audit/impl/SessionIndexAuditExtractor.java
+++ b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/audit/impl/SessionIndexAuditExtractor.java
@@ -75,8 +75,8 @@ public class SessionIndexAuditExtractor implements Function<ProfileRequestContex
                 }
             } else if (message instanceof LogoutRequest) {
                 for (final SessionIndex index : ((LogoutRequest) message).getSessionIndexes()) {
-                    if (index != null && index.getSessionIndex() != null) {
-                        indexes.add(index.getSessionIndex());
+                    if (index != null && index.getValue() != null) {
+                        indexes.add(index.getValue());
                     }
                 }
             }
diff --git a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/saml2/profile/impl/ProcessLogoutRequest.java b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/saml2/profile/impl/ProcessLogoutRequest.java
index 1da0598..55ccd97 100644
--- a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/saml2/profile/impl/ProcessLogoutRequest.java
+++ b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/saml2/profile/impl/ProcessLogoutRequest.java
@@ -450,8 +450,7 @@ public class ProcessLogoutRequest extends AbstractProfileAction {
             }
             
             for (final SessionIndex index : logoutRequest.getSessionIndexes()) {
-                if (index.getSessionIndex() != null
-                        && index.getSessionIndex().equals(saml2Session.getSessionIndex())) {
+                if (index.getValue() != null && index.getValue().equals(saml2Session.getSessionIndex())) {
                     return true;
                 }
             }

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


More information about the commits mailing list