Class MultiTenantJWSKeySelector
java.lang.Object
io.quantics.multitenant.oauth2.config.MultiTenantJWSKeySelector
- All Implemented Interfaces:
com.nimbusds.jwt.proc.JWTClaimsSetAwareJWSKeySelector<com.nimbusds.jose.proc.SecurityContext>
public class MultiTenantJWSKeySelector
extends java.lang.Object
implements com.nimbusds.jwt.proc.JWTClaimsSetAwareJWSKeySelector<com.nimbusds.jose.proc.SecurityContext>
An implementation of a
JWTClaimsSetAwareJWSKeySelector that selects key candidates based on the
issuer of the provided JWT. The issuer needs to be well-known by the TenantDetailsService which
acts as a whitelist of allowed tenants.- See Also:
JWTClaimsSetAwareJWSKeySelector
-
Constructor Summary
Constructors Constructor Description MultiTenantJWSKeySelector(TenantDetailsService tenantService) -
Method Summary
Modifier and Type Method Description java.util.List<? extends java.security.Key>selectKeys(com.nimbusds.jose.JWSHeader jwsHeader, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet, com.nimbusds.jose.proc.SecurityContext securityContext)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MultiTenantJWSKeySelector
-
-
Method Details
-
selectKeys
public java.util.List<? extends java.security.Key> selectKeys(com.nimbusds.jose.JWSHeader jwsHeader, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet, com.nimbusds.jose.proc.SecurityContext securityContext) throws com.nimbusds.jose.KeySourceException- Specified by:
selectKeysin interfacecom.nimbusds.jwt.proc.JWTClaimsSetAwareJWSKeySelector<com.nimbusds.jose.proc.SecurityContext>- Throws:
com.nimbusds.jose.KeySourceException
-