Class RsaPublicJwksKeyWriterServiceFactory
java.lang.Object
net.officefloor.web.jwt.authority.jwks.writer.RsaPublicJwksKeyWriterServiceFactory
- All Implemented Interfaces:
ServiceFactory<JwksKeyWriter<? extends Key>>,JwksKeyWriter<RSAPublicKey>,JwksKeyWriterServiceFactory
public class RsaPublicJwksKeyWriterServiceFactory
extends Object
implements JwksKeyWriterServiceFactory, JwksKeyWriter<RSAPublicKey>
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanWriteKey(Key key) Indicates if able to write theKey.createService(ServiceContext context) Creates the service.voidwriteKey(JwksKeyWriterContext<RSAPublicKey> context) Writes theKeyasObjectNode.
-
Constructor Details
-
RsaPublicJwksKeyWriterServiceFactory
public RsaPublicJwksKeyWriterServiceFactory()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<JwksKeyWriter<? extends Key>>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
canWriteKey
Description copied from interface:JwksKeyWriterIndicates if able to write theKey.- Specified by:
canWriteKeyin interfaceJwksKeyWriter<RSAPublicKey>- Parameters:
key-Key.- Returns:
trueif able to write theKey.
-
writeKey
Description copied from interface:JwksKeyWriterWrites theKeyasObjectNode.- Specified by:
writeKeyin interfaceJwksKeyWriter<RSAPublicKey>- Parameters:
context-JwksKeyWriterContext.- Throws:
Exception- If fails to write theKey.
-