Class SecretJwksKeyParserServiceFactory
java.lang.Object
net.officefloor.web.jwt.authority.jwks.parser.SecretJwksKeyParserServiceFactory
- All Implemented Interfaces:
ServiceFactory<JwksKeyParser>,JwksKeyParser,JwksKeyParserServiceFactory
public class SecretJwksKeyParserServiceFactory
extends Object
implements JwksKeyParserServiceFactory, JwksKeyParser
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.parseKey(JwksKeyParserContext context)
-
Constructor Details
-
SecretJwksKeyParserServiceFactory
public SecretJwksKeyParserServiceFactory()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<JwksKeyParser>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
parseKey
Description copied from interface:JwksKeyParser- Specified by:
parseKeyin interfaceJwksKeyParser- Parameters:
context-JwksKeyParserContext.- Returns:
Keyornullif not able to parseKey(indicating for anotherJwksKeyParserto attempt to obtain theKey).- Throws:
Exception- If failure parsing theKey.
-