Class MSEntraJWSVerifierCacheLoader

java.lang.Object
org.apache.syncope.core.spring.security.jws.MSEntraJWSVerifierCacheLoader
All Implemented Interfaces:
javax.cache.integration.CacheLoader<String,com.nimbusds.jose.JWSVerifier>

public class MSEntraJWSVerifierCacheLoader extends Object implements javax.cache.integration.CacheLoader<String,com.nimbusds.jose.JWSVerifier>
  • Field Details

    • LOG

      protected static final Logger LOG
    • MAPPER

      protected static final JsonMapper MAPPER
    • tenantId

      protected final String tenantId
    • appId

      protected final String appId
  • Constructor Details

    • MSEntraJWSVerifierCacheLoader

      public MSEntraJWSVerifierCacheLoader(String tenantId, String appId)
  • Method Details

    • getOpenIDMetadataDocumentUrl

      protected String getOpenIDMetadataDocumentUrl()
    • extractJwksUri

      protected String extractJwksUri(String openIdMetadataDocument)
    • fetchDocument

      protected String fetchDocument(String url)
    • parseJsonWebKeySet

      protected Map<String,com.nimbusds.jose.JWSVerifier> parseJsonWebKeySet(String jsonWebKeySet)
    • load

      public com.nimbusds.jose.JWSVerifier load(String key) throws javax.cache.integration.CacheLoaderException
      Specified by:
      load in interface javax.cache.integration.CacheLoader<String,com.nimbusds.jose.JWSVerifier>
      Throws:
      javax.cache.integration.CacheLoaderException
    • loadAll

      public Map<String,com.nimbusds.jose.JWSVerifier> loadAll(Iterable<? extends String> keys) throws javax.cache.integration.CacheLoaderException
      Specified by:
      loadAll in interface javax.cache.integration.CacheLoader<String,com.nimbusds.jose.JWSVerifier>
      Throws:
      javax.cache.integration.CacheLoaderException