第 1 章 Elytron 中的凭证存储
1.1. Elytron 提供的凭证存储类型 复制链接链接已复制到粘贴板!
Elytron 提供两个默认凭证类型,您可以使用它来保存您的凭证:KeyStoreCredentialStore 和 PropertiesCredentialStore。您可以使用 JBoss EAP 管理 CLI 来管理凭据存储,或者您可以使用 WildFly Elytron 工具脱机管理它们。除了两种默认存储类型外,您还可以创建、使用和管理您自己的自定义凭据存储。
您可以将所有 Elytron 凭证类型存储在 KeyStoreStore 中。elytron
子系统中的 KeyStore 的资源名称为 credentials-store
。KeyStoreCredentialStore 使用 Java Development Kit(JDK)中的 KeyStore 实现提供的机制来保护您的凭证。
在管理 CLI 中访问 KeyStoreCredentialStore,如下所示:
/subsystem=elytron/credential-store
/subsystem=elytron/credential-store
为了正确启动,JBoss EAP 需要初始密钥来解锁某些安全资源。使用 PropertiesCredentialStore 提供这个初始 secret 密钥来解锁这些必要的服务器资源。您还可以使用 PropertiesCredentialStore 存储 SecretKeyCredential,它支持存储高级加密标准(AES)secret 密钥。使用文件系统权限来限制对凭据存储的访问。理想情况下,您应该只向应用服务器授予访问权限,以限制对此凭据存储的访问。
PropertiesCredentialStore 的 elytron
子系统中的资源名称是 secret-key-credential-store
,您可以在管理 CLI 中访问它,如下所示:
/subsystem=elytron/secret-key-credential-store
/subsystem=elytron/secret-key-credential-store