This is an automated email from the ASF dual-hosted git repository. coheigea pushed a commit to branch coheigea/saml-refactor-new in repository https://gitbox.apache.org/repos/asf/ws-wss4j.git
commit 1c95a804ed639cad5ef86f9addb88de3b7f6a036 Author: Colm O hEigeartaigh <cohei...@apache.org> AuthorDate: Wed Jul 16 11:36:46 2025 +0100 Simplifying SamlTokenSecurityEvent --- .../apache/wss4j/api/stax/securityEvent/SamlTokenSecurityEvent.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ws-security-api-stax/src/main/java/org/apache/wss4j/api/stax/securityEvent/SamlTokenSecurityEvent.java b/ws-security-api-stax/src/main/java/org/apache/wss4j/api/stax/securityEvent/SamlTokenSecurityEvent.java index 6ddd8ed56..5b9bdeda2 100644 --- a/ws-security-api-stax/src/main/java/org/apache/wss4j/api/stax/securityEvent/SamlTokenSecurityEvent.java +++ b/ws-security-api-stax/src/main/java/org/apache/wss4j/api/stax/securityEvent/SamlTokenSecurityEvent.java @@ -19,7 +19,6 @@ package org.apache.wss4j.api.stax.securityEvent; import org.apache.wss4j.common.ext.WSSecurityException; -import org.apache.wss4j.common.principal.SAMLTokenPrincipal; import org.apache.wss4j.dom.saml.SamlAssertionWrapper; import org.apache.wss4j.api.stax.securityToken.SamlSecurityToken; @@ -35,6 +34,6 @@ public class SamlTokenSecurityEvent extends IssuedTokenSecurityEvent<SamlSecurit } public SamlAssertionWrapper getSamlAssertionWrapper() throws WSSecurityException { - return (SamlAssertionWrapper)((SAMLTokenPrincipal)getSecurityToken().getPrincipal()).getToken(); + return getSecurityToken().getSamlAssertionWrapper(); } }