Class SecretJwksKeyWriterServiceFactory
java.lang.Object
net.officefloor.web.jwt.authority.jwks.writer.SecretJwksKeyWriterServiceFactory
- All Implemented Interfaces:
ServiceFactory<JwksKeyWriter<? extends Key>>,JwksKeyWriter<SecretKeySpec>,JwksKeyWriterServiceFactory
public class SecretJwksKeyWriterServiceFactory
extends Object
implements JwksKeyWriterServiceFactory, JwksKeyWriter<SecretKeySpec>
- 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<SecretKeySpec> context) Writes theKeyasObjectNode.
-
Constructor Details
-
SecretJwksKeyWriterServiceFactory
public SecretJwksKeyWriterServiceFactory()
-
-
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<SecretKeySpec>- Parameters:
key-Key.- Returns:
trueif able to write theKey.
-
writeKey
Description copied from interface:JwksKeyWriterWrites theKeyasObjectNode.- Specified by:
writeKeyin interfaceJwksKeyWriter<SecretKeySpec>- Parameters:
context-JwksKeyWriterContext.- Throws:
Exception- If fails to write theKey.
-