Search in sources :

Example 6 with JWKSelector

use of com.nimbusds.jose.jwk.JWKSelector in project spring-security by spring-projects.

the class ReactiveRemoteJWKSourceTests method setup.

// @formatter:on
@BeforeEach
public void setup() {
    this.server = new MockWebServer();
    this.source = new ReactiveRemoteJWKSource(this.server.url("/").toString());
    this.server.enqueue(new MockResponse().setBody(this.keys));
    this.selector = new JWKSelector(this.matcher);
}
Also used : JWKSelector(com.nimbusds.jose.jwk.JWKSelector) MockResponse(okhttp3.mockwebserver.MockResponse) MockWebServer(okhttp3.mockwebserver.MockWebServer) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

JWKSelector (com.nimbusds.jose.jwk.JWKSelector)6 JWK (com.nimbusds.jose.jwk.JWK)5 JWSAlgorithm (com.nimbusds.jose.JWSAlgorithm)3 KeySourceException (com.nimbusds.jose.KeySourceException)3 JOSEException (com.nimbusds.jose.JOSEException)2 JWSHeader (com.nimbusds.jose.JWSHeader)2 JWKMatcher (com.nimbusds.jose.jwk.JWKMatcher)2 RSAKey (com.nimbusds.jose.jwk.RSAKey)2 SecurityContext (com.nimbusds.jose.proc.SecurityContext)2 List (java.util.List)2 JOSEObjectType (com.nimbusds.jose.JOSEObjectType)1 JWSSigner (com.nimbusds.jose.JWSSigner)1 DefaultJWSSignerFactory (com.nimbusds.jose.crypto.factories.DefaultJWSSignerFactory)1 JWKSet (com.nimbusds.jose.jwk.JWKSet)1 JWKSource (com.nimbusds.jose.jwk.source.JWKSource)1 JWSSignerFactory (com.nimbusds.jose.produce.JWSSignerFactory)1 Base64 (com.nimbusds.jose.util.Base64)1 Base64URL (com.nimbusds.jose.util.Base64URL)1 JWTClaimsSet (com.nimbusds.jwt.JWTClaimsSet)1 SignedJWT (com.nimbusds.jwt.SignedJWT)1