Interface EncryptedCredentialsAccessor

  • All Known Implementing Classes:
    EncryptedCredentialsAccessorImpl

    public interface EncryptedCredentialsAccessor
    Accessor for shared credentials which does not decrypt their configuration. Should be used e.g. for exporting data outside of Bamboo.
    Since:
    5.15
    • Method Detail

      • getAllCredentials

        @NotNull
        @NotNull List<CredentialsData> getAllCredentials()
        Gets all shared credentials without decrypting their configuration.
        Returns:
        the list of all shared credentials, with each entity's configuration still encrypted
      • getCredentialsById

        @NotNull
        @NotNull Optional<CredentialsData> getCredentialsById​(long id)
        Gets the shared credentials by id without decrypting its configuration.
        Parameters:
        id - id of the shared credentials
        Returns:
        shared credentials object if found, with configuration still encrypted
      • getCredentialsByOid

        @NotNull
        @NotNull Optional<CredentialsData> getCredentialsByOid​(@NotNull
                                                               @NotNull BambooEntityOid oid)
        Gets the shared credentials by oid without decrypting its configuration.
        Parameters:
        oid - oid of the shared credentials
        Returns:
        shared credentials object if found, with configuration still encrypted
      • getCredentialsByName

        @NotNull
        @NotNull Optional<CredentialsData> getCredentialsByName​(@NotNull
                                                                @NotNull String name)
        Gets the shared credentials by name without decrypting its configuration.
        Parameters:
        name - name of the shared credentials
        Returns:
        shared credentials object if found, with configuration still encrypted