<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>ch.admin.bit.jeap</groupId>
        <artifactId>jeap-spring-boot-jwe-starter-parent</artifactId>
        <version>1.3.0</version>
    </parent>

    <artifactId>jeap-spring-boot-jwe-crypto</artifactId>
    <name>${project.groupId}:${project.artifactId}</name>
    <description>Pure JOSE/crypto building blocks (RSA key model, key-size validation, JWK Set conversion) for the jEAP
        JWE starter. No Spring dependencies.
    </description>
    <packaging>jar</packaging>

    <dependencies>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-oauth2-jose</artifactId>
        </dependency>
        <!-- Required by Nimbus JWK.parseFromPEMEncodedObjects to parse PEM-encoded RSA keys. -->
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcpkix-jdk18on</artifactId>
        </dependency>

        <!-- Amazon Corretto Crypto Provider (ACCP): native, FIPS-grade JCA provider used to accelerate
             the RSA-OAEP and AES-GCM operations. Installed at top priority and used by Nimbus when its
             self-test passes; the code falls back to the JDK provider otherwise. Same approach and the
             same two shipped classifiers as jeap-crypto-core. Version is managed by the parent. -->
        <dependency>
            <groupId>software.amazon.cryptools</groupId>
            <artifactId>AmazonCorrettoCryptoProvider</artifactId>
            <classifier>linux-x86_64</classifier>
        </dependency>
        <dependency>
            <groupId>software.amazon.cryptools</groupId>
            <artifactId>AmazonCorrettoCryptoProvider</artifactId>
            <classifier>osx-aarch_64</classifier>
        </dependency>

        <!-- Logging facade for the provider fallback diagnostics (provided by the consuming app at runtime). -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

</project>
