Class MockJwksRetriever
- java.lang.Object
-
- net.officefloor.tutorial.jwtresourcehttpserver.MockJwksRetriever
-
- All Implemented Interfaces:
JwksRetriever
public class MockJwksRetriever extends java.lang.Object implements JwksRetriever
Mock
JwksRetriever
.Typically this would be HTTPS call to JWT authority server.
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MockJwksRetriever.JwksKey
static class
MockJwksRetriever.JwksKeys
-
Constructor Summary
Constructors Constructor Description MockJwksRetriever()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
retrieveJwks()
Retrieves the JWKS content.
-
-
-
Method Detail
-
retrieveJwks
public java.io.InputStream retrieveJwks() throws java.lang.Exception
Description copied from interface:JwksRetriever
Retrieves the JWKS content.- Specified by:
retrieveJwks
in interfaceJwksRetriever
- Returns:
InputStream
to the JWKS content.- Throws:
java.lang.Exception
- If fails to retrieve the JWKS content.
-
-