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