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