Interface JwksKeyWriter<K extends java.security.Key>
-
- All Known Implementing Classes:
RsaPrivateJwksKeyWriterServiceFactory,RsaPublicJwksKeyWriterServiceFactory,SecretJwksKeyWriterServiceFactory
public interface JwksKeyWriter<K extends java.security.Key>Creates the JWKSkeyJsonNodefrom theKey.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanWriteKey(java.security.Key key)Indicates if able to write theKey.voidwriteKey(JwksKeyWriterContext<K> context)Writes theKeyasObjectNode.
-
-
-
Method Detail
-
canWriteKey
boolean canWriteKey(java.security.Key key)
Indicates if able to write theKey.- Parameters:
key-Key.- Returns:
trueif able to write theKey.
-
writeKey
void writeKey(JwksKeyWriterContext<K> context) throws java.lang.Exception
Writes theKeyasObjectNode.- Parameters:
context-JwksKeyWriterContext.- Throws:
java.lang.Exception- If fails to write theKey.
-
-