Interface JwksKeyWriterContext<K>
public interface JwksKeyWriterContext<K>
Context for the
JwksKeyWriter.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()Obtains theKeyto write.tools.jackson.databind.node.ObjectNodeObtains the keyObjectNodeto be populated with theKeydetails.tools.jackson.databind.node.JsonNodeFactoryObtains theJsonNodeFactory.default voidConvenience method to set bytes as Base64 on keyObjectNode.default voidsetBase64(String fieldName, BigInteger value) Convenience method to setBigIntegervalue as Base64 on keyObjectNode.default voidSpecifies the field bytes as Base64 on theObjectNode.default voidsetBase64(tools.jackson.databind.node.ObjectNode node, String fieldName, BigInteger value) Specifies the fieldBigIntegervalue as Base64 on theObjectNode.default voidSpecifies the key type.default voidConvenience method to set long value on keyObjectNode.default voidSpecifies the field long value on theObjectNode.default voidConvenience method to set string value on keyObjectNode.default voidSpecifies the field string value on theObjectNode.
-
Method Details
-
getKey
K getKey()Obtains theKeyto write.- Returns:
Keyto write.
-
getKeyNode
tools.jackson.databind.node.ObjectNode getKeyNode()Obtains the keyObjectNodeto be populated with theKeydetails.- Returns:
- Key
ObjectNodeto be populated with theKeydetails.
-
getNodeFactory
tools.jackson.databind.node.JsonNodeFactory getNodeFactory()Obtains theJsonNodeFactory.- Returns:
JsonNodeFactory.
-
setKty
Specifies the key type.- Parameters:
kty- Key type.
-
setLong
Convenience method to set long value on keyObjectNode.- Parameters:
fieldName- Field name.value- Value.
-
setLong
Specifies the field long value on theObjectNode.- Parameters:
node-ObjectNode.fieldName- Field name.value- Value.
-
setString
Convenience method to set string value on keyObjectNode.- Parameters:
fieldName- Field name.value- Value.
-
setString
Specifies the field string value on theObjectNode.- Parameters:
node-ObjectNode.fieldName- Field name.value- Value.
-
setBase64
Convenience method to setBigIntegervalue as Base64 on keyObjectNode.- Parameters:
fieldName- Field name.value- Value.
-
setBase64
default void setBase64(tools.jackson.databind.node.ObjectNode node, String fieldName, BigInteger value) Specifies the fieldBigIntegervalue as Base64 on theObjectNode.- Parameters:
node-ObjectNode.fieldName- Field name.value- Value.
-
setBase64
Convenience method to set bytes as Base64 on keyObjectNode.- Parameters:
fieldName- Field name.value- Value.
-
setBase64
Specifies the field bytes as Base64 on theObjectNode.- Parameters:
node-ObjectNode.fieldName- Field name.value- Value.
-