【发布时间】:2020-07-06 12:16:30
【问题描述】:
我正在尝试将以下用于 SAML2 安全性的 yaml 配置转换为等效的属性文件。
spring:
security:
saml2:
relyingparty:
registration:
xyz:
signing:
credentials:
- certificate-location: "classpath:saml/xyz.pem"
private-key-location: "classpath:saml/xyz.key"
identityprovider:
entity-id: xyz
sso-url: xyz.com
verification:
credentials:
- certificate-location: "classpath:saml/xyz.pem"
它包含列表,如何将其转换为属性并不明显。 我在网上找不到太多关于它的信息。
这部分配置文件配置如下类:
org.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyProperties
来自 spring-boot-autoconfigure-2.2.5.RELEASE.jar。
【问题讨论】:
-
你能显示与这个yaml匹配的Java类吗
-
该类位于 saml2 库的深处。类名是:org.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyProperties
标签: java spring-boot spring-security yaml properties-file