Class BitwardenItem

java.lang.Object
com.mwdle.bitwarden.model.BitwardenItem

public class BitwardenItem extends Object
Represents a fully resolved Bitwarden item object, deserialized from the JSON output of bw get item.

This class models all fields, including secrets, relevant to the plugin for converting a Bitwarden item into a concrete Jenkins credential.

  • Constructor Details

    • BitwardenItem

      public BitwardenItem()
  • Method Details

    • getId

      public String getId()
      Gets the unique UUID of the item.
      Returns:
      The unique UUID of the item.
    • getName

      public String getName()
      Gets the user-provided name of the item.
      Returns:
      The user-provided name of the item.
    • getNotes

      public Secret getNotes()
      Gets the content of the item's "notes" field.
      Returns:
      The content of the item's "notes" field as a Secret.
    • getLogin

      public BitwardenLogin getLogin()
      Gets the nested object containing login details.
      Returns:
      The BitwardenLogin object, or null if this is not a Login item.
    • getSshKey

      public BitwardenSshKey getSshKey()
      Gets the nested object containing SSH key details.
      Returns:
      The BitwardenSshKey object, or null if this is not an SSH Key item.