Interface JwksKeyWriterContext<K>


  • public interface JwksKeyWriterContext<K>
    Context for the JwksKeyWriter.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      K getKey()
      Obtains the Key to write.
      com.fasterxml.jackson.databind.node.ObjectNode getKeyNode()
      Obtains the key ObjectNode to be populated with the Key details.
      com.fasterxml.jackson.databind.node.JsonNodeFactory getNodeFactory()
      Obtains the JsonNodeFactory.
      default void setBase64​(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String fieldName, byte[] value)
      Specifies the field bytes as Base64 on the ObjectNode.
      default void setBase64​(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String fieldName, java.math.BigInteger value)
      Specifies the field BigInteger value as Base64 on the ObjectNode.
      default void setBase64​(java.lang.String fieldName, byte[] value)
      Convenience method to set bytes as Base64 on key ObjectNode.
      default void setBase64​(java.lang.String fieldName, java.math.BigInteger value)
      Convenience method to set BigInteger value as Base64 on key ObjectNode.
      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 the ObjectNode.
      default void setLong​(java.lang.String fieldName, long value)
      Convenience method to set long value on key ObjectNode.
      default void setString​(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String fieldName, java.lang.String value)
      Specifies the field string value on the ObjectNode.
      default void setString​(java.lang.String fieldName, java.lang.String value)
      Convenience method to set string value on key ObjectNode.
    • Method Detail

      • getKey

        K getKey()
        Obtains the Key to write.
        Returns:
        Key to write.
      • getKeyNode

        com.fasterxml.jackson.databind.node.ObjectNode getKeyNode()
        Obtains the key ObjectNode to be populated with the Key details.
        Returns:
        Key ObjectNode to be populated with the Key details.
      • getNodeFactory

        com.fasterxml.jackson.databind.node.JsonNodeFactory getNodeFactory()
        Obtains the JsonNodeFactory.
        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 key ObjectNode.
        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 the ObjectNode.
        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 key ObjectNode.
        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 the ObjectNode.
        Parameters:
        node - ObjectNode.
        fieldName - Field name.
        value - Value.
      • setBase64

        default void setBase64​(java.lang.String fieldName,
                               java.math.BigInteger value)
        Convenience method to set BigInteger value as Base64 on key ObjectNode.
        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 field BigInteger value as Base64 on the ObjectNode.
        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 key ObjectNode.
        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 the ObjectNode.
        Parameters:
        node - ObjectNode.
        fieldName - Field name.
        value - Value.