Class RsaPrivateJwksKeyWriterServiceFactory
- java.lang.Object
-
- net.officefloor.web.jwt.authority.jwks.writer.RsaPrivateJwksKeyWriterServiceFactory
-
- All Implemented Interfaces:
ServiceFactory<JwksKeyWriter<? extends java.security.Key>>,JwksKeyWriter<java.security.interfaces.RSAPrivateCrtKey>,JwksKeyWriterServiceFactory
public class RsaPrivateJwksKeyWriterServiceFactory extends java.lang.Object implements JwksKeyWriterServiceFactory, JwksKeyWriter<java.security.interfaces.RSAPrivateCrtKey>
RSAPrivateKeyJwksKeyWriterServiceFactory.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description RsaPrivateJwksKeyWriterServiceFactory()
-
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.RSAPrivateCrtKey>createService(ServiceContext context)Creates the service.voidwriteKey(JwksKeyWriterContext<java.security.interfaces.RSAPrivateCrtKey> context)Writes theKeyasObjectNode.
-
-
-
Method Detail
-
createService
public JwksKeyWriter<java.security.interfaces.RSAPrivateCrtKey> 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.RSAPrivateCrtKey>- Parameters:
key-Key.- Returns:
trueif able to write theKey.
-
writeKey
public void writeKey(JwksKeyWriterContext<java.security.interfaces.RSAPrivateCrtKey> context) throws java.lang.Exception
Description copied from interface:JwksKeyWriterWrites theKeyasObjectNode.- Specified by:
writeKeyin interfaceJwksKeyWriter<java.security.interfaces.RSAPrivateCrtKey>- Parameters:
context-JwksKeyWriterContext.- Throws:
java.lang.Exception- If fails to write theKey.
-
-