Interface JwksKeyWriterContext<K>
-
public interface JwksKeyWriterContext<K>
Context for theJwksKeyWriter
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description K
getKey()
Obtains theKey
to write.com.fasterxml.jackson.databind.node.ObjectNode
getKeyNode()
Obtains the keyObjectNode
to be populated with theKey
details.com.fasterxml.jackson.databind.node.JsonNodeFactory
getNodeFactory()
Obtains theJsonNodeFactory
.default void
setBase64(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String fieldName, byte[] value)
Specifies the field bytes as Base64 on theObjectNode
.default void
setBase64(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String fieldName, java.math.BigInteger value)
Specifies the fieldBigInteger
value as Base64 on theObjectNode
.default void
setBase64(java.lang.String fieldName, byte[] value)
Convenience method to set bytes as Base64 on keyObjectNode
.default void
setBase64(java.lang.String fieldName, java.math.BigInteger value)
Convenience method to setBigInteger
value as Base64 on keyObjectNode
.default void
setKty(java.lang.String kty)
Specifies the key type.default void
setLong(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String fieldName, long value)
Specifies the field long value on theObjectNode
.default void
setLong(java.lang.String fieldName, long value)
Convenience method to set long value on keyObjectNode
.default void
setString(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String fieldName, java.lang.String value)
Specifies the field string value on theObjectNode
.default void
setString(java.lang.String fieldName, java.lang.String value)
Convenience method to set string value on keyObjectNode
.
-
-
-
Method Detail
-
getKey
K getKey()
Obtains theKey
to write.- Returns:
Key
to write.
-
getKeyNode
com.fasterxml.jackson.databind.node.ObjectNode getKeyNode()
Obtains the keyObjectNode
to be populated with theKey
details.- Returns:
- Key
ObjectNode
to be populated with theKey
details.
-
getNodeFactory
com.fasterxml.jackson.databind.node.JsonNodeFactory getNodeFactory()
Obtains theJsonNodeFactory
.- Returns:
JsonNodeFactory
.
-
setKty
default void setKty(java.lang.String kty)
Specifies the key type.- Parameters:
kty
- Key type.
-
setLong
default void setLong(java.lang.String fieldName, long value)
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, java.lang.String fieldName, long value)
Specifies the field long value on theObjectNode
.- Parameters:
node
-ObjectNode
.fieldName
- Field name.value
- Value.
-
setString
default void setString(java.lang.String fieldName, java.lang.String value)
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, java.lang.String fieldName, java.lang.String value)
Specifies the field string value on theObjectNode
.- Parameters:
node
-ObjectNode
.fieldName
- Field name.value
- Value.
-
setBase64
default void setBase64(java.lang.String fieldName, java.math.BigInteger value)
Convenience method to setBigInteger
value as Base64 on keyObjectNode
.- Parameters:
fieldName
- Field name.value
- Value.
-
setBase64
default void setBase64(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String fieldName, java.math.BigInteger value)
Specifies the fieldBigInteger
value as Base64 on theObjectNode
.- Parameters:
node
-ObjectNode
.fieldName
- Field name.value
- Value.
-
setBase64
default void setBase64(java.lang.String fieldName, byte[] value)
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, java.lang.String fieldName, byte[] value)
Specifies the field bytes as Base64 on theObjectNode
.- Parameters:
node
-ObjectNode
.fieldName
- Field name.value
- Value.
-
-