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