Package net.shibboleth.oidc.jwk
Class RemoteJwkSetCacheTest
- java.lang.Object
-
- net.shibboleth.oidc.jwk.RemoteJwkSetCacheTest
-
public class RemoteJwkSetCacheTest extends Object
Unit tests forRemoteJwkSetCache.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) net.shibboleth.oidc.jwk.RemoteJwkSetCachejwkSetCache(package private) StorageServicestorageService
-
Constructor Summary
Constructors Constructor Description RemoteJwkSetCacheTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StorageServicebuildStorageService()protected org.apache.http.client.HttpClientcreateMockHttpClient(String output)protected StringrotatedValidJwkSet()voidsetup()voidtestInvalidJwk()voidtestKeyIdNotInCachedSet()voidtestKeyIdNotInCachedSet_Refetch()voidtestNoHttpClient()voidtestNoStorageService()voidtestSuccessNoSecurity()protected StringvalidJwkSet()
-
-
-
Field Detail
-
jwkSetCache
net.shibboleth.oidc.jwk.RemoteJwkSetCache jwkSetCache
-
storageService
StorageService storageService
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws InitializationException, ComponentInitializationException
-
buildStorageService
protected StorageService buildStorageService() throws ComponentInitializationException
- Throws:
ComponentInitializationException
-
testNoHttpClient
public void testNoHttpClient() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testNoStorageService
public void testNoStorageService() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testSuccessNoSecurity
public void testSuccessNoSecurity() throws org.apache.http.client.ClientProtocolException, IOException, ComponentInitializationException, URISyntaxException, InterruptedException- Throws:
org.apache.http.client.ClientProtocolExceptionIOExceptionComponentInitializationExceptionURISyntaxExceptionInterruptedException
-
testKeyIdNotInCachedSet_Refetch
public void testKeyIdNotInCachedSet_Refetch() throws Exception- Throws:
Exception
-
testInvalidJwk
public void testInvalidJwk() throws org.apache.http.client.ClientProtocolException, IOException, ComponentInitializationException, URISyntaxException- Throws:
org.apache.http.client.ClientProtocolExceptionIOExceptionComponentInitializationExceptionURISyntaxException
-
createMockHttpClient
protected org.apache.http.client.HttpClient createMockHttpClient(String output) throws org.apache.http.client.ClientProtocolException, IOException
- Throws:
org.apache.http.client.ClientProtocolExceptionIOException
-
validJwkSet
protected String validJwkSet()
-
rotatedValidJwkSet
protected String rotatedValidJwkSet()
-
-