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