Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Related: #1193.
  • Loading branch information
gregturn committed Jan 11, 2023
1 parent c39d3d1 commit af3f0ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</exclusion>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -824,7 +828,7 @@
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>2.3.2</version>
<version>2.3.3</version>
<exclusions>
<exclusion>
<groupId>jakarta.activation</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@

package org.springframework.ws.soap.security.xwss;

import static org.assertj.core.api.Assertions.*;
import static org.assertj.core.api.Assertions.assertThat;

import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.xml.soap.SOAPMessage;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledOnJre;
import org.junit.jupiter.api.condition.JRE;
import org.springframework.core.io.ClassPathResource;
import org.springframework.ws.soap.saaj.SaajSoapMessage;
import org.springframework.ws.soap.security.callback.AbstractCallbackHandler;
Expand Down Expand Up @@ -100,6 +102,7 @@ protected void handleInternal(Callback callback) {
}

@Test
@EnabledOnJre(JRE.JAVA_8) // Newer JDKs no longer support the RSA-SHA1 signature this test case exerts
public void testValidateCertificate() throws Exception {

interceptor.setPolicyConfiguration(new ClassPathResource("requireSignature-config.xml", getClass()));
Expand Down

0 comments on commit af3f0ca

Please sign in to comment.