Search in sources :

Example 1 with CryptoApiClient

use of com.forgerock.openbanking.jwt.services.CryptoApiClient in project openbanking-aspsp by OpenBankingToolkit.

the class SignedJwtEventBuilderTest method setUp.

@Before
public void setUp() throws Exception {
    // Mock signing service
    claimsCaptor = ArgumentCaptor.forClass(JWTClaimsSet.class);
    CryptoApiClient cryptoApiClient = mock(CryptoApiClient.class);
    given(cryptoApiClient.signClaims(eq(ISSUER_ID_VALUE), claimsCaptor.capture(), anyBoolean())).willReturn(FAKE_SIGNED_JWT);
    signedJwtEventBuilder = new SignedJwtEventBuilder(ISSUER_ID_VALUE, cryptoApiClient, new ObjectMapper());
}
Also used : JWTClaimsSet(com.nimbusds.jwt.JWTClaimsSet) SignedJwtEventBuilder(com.forgerock.openbanking.aspsp.rs.simulator.event.notification.SignedJwtEventBuilder) CryptoApiClient(com.forgerock.openbanking.jwt.services.CryptoApiClient) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) Before(org.junit.Before)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 SignedJwtEventBuilder (com.forgerock.openbanking.aspsp.rs.simulator.event.notification.SignedJwtEventBuilder)1 CryptoApiClient (com.forgerock.openbanking.jwt.services.CryptoApiClient)1 JWTClaimsSet (com.nimbusds.jwt.JWTClaimsSet)1 Before (org.junit.Before)1