AS AgentScopeAPI 手册 / API Reference

VaultCredentialEntity

@Entity @Table( name = "builder_vault_credential", indexes = {@Index(name = "ix_builder_vault_cred_vault", columnList = "vault_id")}) public class VaultCredentialEntity
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:28–140

Vault 凭证 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getCredentialId、setCredentialId、getVaultId、setVaultId。

Encrypted credential entry inside a VaultEntity.

构造器摘要Constructor Summary

构造器Constructor说明Description
public VaultCredentialEntity()
初始化 `VaultCredentialEntity` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getCredentialId()
获取凭证标识。
Returns the credential id.
public void setCredentialId(String credentialId)
设置凭证标识。
Sets the credential id.
public String getVaultId()
获取 `getVaultId`。
Returns the vault id.
public void setVaultId(String vaultId)
设置 `setVaultId`。
Sets the vault id.
public String getCredentialType()
获取凭证类型。
Returns the credential type.
public void setCredentialType(String credentialType)
设置凭证类型。
Sets the credential type.
public String getLabel()
获取标签。
Returns the label.
public void setLabel(String label)
设置标签。
Sets the label.
public String getTarget()
获取目标。
Returns the target.
public void setTarget(String target)
设置目标。
Sets the target.
public String getCiphertext()
获取 `getCiphertext`。
Returns the ciphertext.
public void setCiphertext(String ciphertext)
设置 `setCiphertext`。
Sets the ciphertext.
public long getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.

构造器详情Constructor Detail

VaultCredentialEntity

public VaultCredentialEntity()

初始化 VaultCredentialEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:67

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:69–71

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:73–75

getCredentialId

public String getCredentialId()

获取凭证标识。

Returns the credential id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:77–79

setCredentialId

public void setCredentialId(String credentialId)

设置凭证标识。

Sets the credential id.

参数Parameters
名称Name类型Type说明Description
credentialIdString凭证标识(类型 `String`)。The credential id.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:81–83

getVaultId

public String getVaultId()

获取 getVaultId。

Returns the vault id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:85–87

setVaultId

public void setVaultId(String vaultId)

设置 setVaultId。

Sets the vault id.

参数Parameters
名称Name类型Type说明Description
vaultIdStringvault 标识(类型 `String`)。The vault id.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:89–91

getCredentialType

public String getCredentialType()

获取凭证类型。

Returns the credential type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:93–95

setCredentialType

public void setCredentialType(String credentialType)

设置凭证类型。

Sets the credential type.

参数Parameters
名称Name类型Type说明Description
credentialTypeString凭证类型(类型 `String`)。The credential type.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:97–99

getLabel

public String getLabel()

获取标签。

Returns the label.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:101–103

setLabel

public void setLabel(String label)

设置标签。

Sets the label.

参数Parameters
名称Name类型Type说明Description
labelString标签(类型 `String`)。The label.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:105–107

getTarget

public String getTarget()

获取目标。

Returns the target.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:109–111

setTarget

public void setTarget(String target)

设置目标。

Sets the target.

参数Parameters
名称Name类型Type说明Description
targetString目标(类型 `String`)。The target.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:113–115

getCiphertext

public String getCiphertext()

获取 getCiphertext。

Returns the ciphertext.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:117–119

setCiphertext

public void setCiphertext(String ciphertext)

设置 setCiphertext。

Sets the ciphertext.

参数Parameters
名称Name类型Type说明Description
ciphertextStringciphertext(类型 `String`)。The ciphertext.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:121–123

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:125–127

setCreatedAt

public void setCreatedAt(long createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtlong已创建 At(类型 `long`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:129–131

getUpdatedAt

public long getUpdatedAt()

获取已更新 At。

Returns the updated at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:133–135

setUpdatedAt

public void setUpdatedAt(long updatedAt)

设置已更新 At。

Sets the updated at.

参数Parameters
名称Name类型Type说明Description
updatedAtlong已更新 At(类型 `long`)。The updated at.
源码Source io/agentscope/builder/web/persistence/jpa/VaultCredentialEntity.java:137–139
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.