Package com.mwdle.bitwarden.model
Class BitwardenItem
java.lang.Object
com.mwdle.bitwarden.model.BitwardenItem
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
BitwardenItem
public BitwardenItem()
-
-
Method Details
-
getId
Gets the unique UUID of the item.- Returns:
- The unique UUID of the item.
-
getName
Gets the user-provided name of the item.- Returns:
- The user-provided name of the item.
-
getNotes
Gets the content of the item's "notes" field.- Returns:
- The content of the item's "notes" field as a
Secret
.
-
getLogin
Gets the nested object containing login details.- Returns:
- The
BitwardenLogin
object, ornull
if this is not a Login item.
-
getSshKey
Gets the nested object containing SSH key details.- Returns:
- The
BitwardenSshKey
object, ornull
if this is not an SSH Key item.
-