Skip to content

Commit

Permalink
Merge pull request #52 from swedenconnect/release/1.2.8-release
Browse files Browse the repository at this point in the history
relese 1.2.8
  • Loading branch information
Razumain authored Apr 16, 2024
2 parents 8ccc9d8 + 57a3510 commit 6d4d701
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 379 deletions.
7 changes: 1 addition & 6 deletions cert-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<artifactId>sigval-parent</artifactId>
<groupId>se.swedenconnect.sigval</groupId>
<version>1.2.7</version>
<version>1.2.8</version>
</parent>

<name>Sweden Connect :: Signature validation :: X.509 Certificate Extensions</name>
Expand Down Expand Up @@ -75,11 +75,6 @@
</dependency>


<dependency>
<groupId>se.swedenconnect.schemas.cert</groupId>
<artifactId>authcontextinfo10-jaxb</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
import se.swedenconnect.cert.extensions.data.saci.AttributeMapping;
import se.swedenconnect.cert.extensions.data.saci.Attribute;
import se.swedenconnect.cert.extensions.data.saci.SAMLAuthContext;
import se.swedenconnect.cert.extensions.jaxb.JaxbAuthnContext;
import se.swedenconnect.cert.extensions.jaxb.JaxbTestData;

/**
* Testing AuthContext DOM implementation
Expand Down Expand Up @@ -74,27 +72,6 @@ void getAuthnContext() throws Exception {
String xmlPrint3 = AuthnContext.printAuthnContext(samlAuthnContext, false);
}

@Test
void interopTest() throws Exception {
AuthnContext.getInstance(JaxbTestData.getTestContext().toASN1Primitive());
AuthnContext.getInstance(JaxbTestData.nullSamlNameJaxbAuthContext.toASN1Primitive(), false);

IllegalArgumentException exception = Assertions.assertThrows(IllegalArgumentException.class, () -> {
AuthnContext.getInstance(JaxbTestData.nullSamlNameJaxbAuthContext.toASN1Primitive(), true);
});

AuthnContext testContext = TestData.getTestContext(true);
SAMLAuthContext samlAuthContext = testContext.getStatementInfoList().get(0);
Instant authInstant = samlAuthContext.getAuthContextInfo().getAuthenticationInstant();
String printAuthContext = AuthnContext.printAuthnContext(samlAuthContext, false);
SAMLAuthContext parseSAMLAuthContext = new SAMLAuthContext(printAuthContext, false);
Assertions.assertEquals(
AbstractDomData.instantToString(authInstant),
AbstractDomData.instantToString(parseSAMLAuthContext.getAuthContextInfo().getAuthenticationInstant()));
log.info("Time expressed is expected: " + AbstractDomData.instantToString(authInstant));

JaxbAuthnContext jaxbAuthnContext = JaxbAuthnContext.getInstance(TestData.getTestContext(true).toASN1Primitive());
}


}

This file was deleted.

Loading

0 comments on commit 6d4d701

Please sign in to comment.