This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/main by this push:
     new 7c777e14ce3 Minor code tidy-up
7c777e14ce3 is described below

commit 7c777e14ce3b7c402be7820a5f88f22c2945fc72
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Tue Nov 24 13:08:05 2026 +0000

    Minor code tidy-up
---
 .../org/apache/cxf/rs/security/xml/XmlSecInInterceptor.java    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSecInInterceptor.java
 
b/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSecInInterceptor.java
index 56d097a53c9..2388a1ba1f0 100644
--- 
a/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSecInInterceptor.java
+++ 
b/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/xml/XmlSecInInterceptor.java
@@ -256,14 +256,16 @@ public class XmlSecInInterceptor extends 
AbstractPhaseInterceptor<Message> imple
             @Override
             public void registerSecurityEvent(SecurityEvent securityEvent) 
throws XMLSecurityException {
                 if (securityEvent.getSecurityEventType() == 
SecurityEventConstants.AlgorithmSuite) {
-                    
checkSignatureTransform((AlgorithmSuiteSecurityEvent)securityEvent);
+                    final AlgorithmSuiteSecurityEvent 
algorithmSuiteSecurityEvent =
+                        (AlgorithmSuiteSecurityEvent)securityEvent;
+                    checkSignatureTransform(algorithmSuiteSecurityEvent);
                     if (encryptionProperties != null) {
-                        
checkEncryptionAlgorithms((AlgorithmSuiteSecurityEvent)securityEvent);
+                        checkEncryptionAlgorithms(algorithmSuiteSecurityEvent);
                     } else {
-                        
checkDefaultKeyTransportAlgorithm((AlgorithmSuiteSecurityEvent)securityEvent);
+                        
checkDefaultKeyTransportAlgorithm(algorithmSuiteSecurityEvent);
                     }
                     if (sigProps != null) {
-                        
checkSignatureAlgorithms((AlgorithmSuiteSecurityEvent)securityEvent);
+                        checkSignatureAlgorithms(algorithmSuiteSecurityEvent);
                     }
                 } else if (securityEvent.getSecurityEventType() != 
SecurityEventConstants.EncryptedKeyToken
                     && securityEvent instanceof TokenSecurityEvent<?>) {

Reply via email to