Package swiss.trustbroker.config.dto
Class WsTrustConfig.WsTrustConfigBuilder
java.lang.Object
swiss.trustbroker.config.dto.WsTrustConfig.WsTrustConfigBuilder
- Enclosing class:
WsTrustConfig
-
Method Summary
Modifier and TypeMethodDescriptionKeystore alias.allowedClientIpRegex(String allowedClientIpRegex) Regex of client IPs allowed (usingX-Forwarded-ForHTTP header).allowedNetworks(List<String> allowedNetworks) List of client networks allowed (usingtrustbroker.config.network.networkHeaderHTTP header).List of exposed WS-Trust bindings.build()Keystore path.doSignResponse(boolean doSignResponse) Sign SOAP responses.enabled(boolean enabled) Feature toggle allowing to disable the WSTrust endpoint
Default: false (since 1.13.0)enforceClientIp(boolean enforceClientIp) Client IPs enforced if configured (allowedClientIpRegex).enforceNetwork(boolean enforceNetwork) Client networks enforced if configured (allowedNetworks).issueEnabled(boolean issueEnabled) Deprecated.use bindingsissueRequireSignedAssertions(boolean issueRequireSignedAssertions) Deprecated.issueRequireSignedRequests(boolean issueRequireSignedRequests) Require signed SOAP requests for WS-Trust ISSUE.issueRequireTimestamp(boolean issueRequireTimestamp) WS-Trust ISSUE requires timestamp.lifetimeMin(long lifetimeMin) Lifetime expiration in minutes.Keystore password.renewEnabled(boolean renewEnabled) Deprecated.use bindingsrenewRequireSignedRequests(boolean renewRequireSignedRequests) Require signed SOAP requests for WS-Trust RENEW.renewRequiresSecurityToken(boolean renewRequiresSecurityToken) RENEW request requires a valid security token.renewRequiresSsoSession(boolean renewRequiresSsoSession) RENEW request requires a valid SSO session.soapHeadersToConsider(List<String> soapHeadersToConsider) SOAP headers considered by the WS-Trust implementation.soapVersion(WsTrustConfig.SoapVersionConfig soapVersion) SOAP version.toString()Keystore type.wsBasePath(String wsBasePath) Allow base path differing from SAML API.
-
Method Details
-
enabled
Feature toggle allowing to disable the WSTrust endpoint
Default: false (since 1.13.0)- Returns:
this.- Since:
- 1.9.0
-
cert
Keystore path.- Returns:
this.
-
type
Keystore type.- Returns:
this.
-
alias
Keystore alias.- Returns:
this.- Since:
- 1.13.0
-
password
Keystore password.- Returns:
this.
-
wsBasePath
Allow base path differing from SAML API.- Returns:
this.
-
issueEnabled
Deprecated.use bindingsEnable ISSUE request.
Default: false (since 1.13.0)- Returns:
this.- Since:
- 1.12.0
-
renewEnabled
Deprecated.use bindingsEnable RENEW request.
Default: false- Returns:
this.- Since:
- 1.11.0
-
bindings
List of exposed WS-Trust bindings.
Default: none- Returns:
this.- Since:
- 1.14.0
- See Also:
-
renewRequiresSsoSession
RENEW request requires a valid SSO session.
Default: true- Returns:
this.- Since:
- 1.11.0
-
renewRequiresSecurityToken
public WsTrustConfig.WsTrustConfigBuilder renewRequiresSecurityToken(boolean renewRequiresSecurityToken) RENEW request requires a valid security token.
Default: true- Returns:
this.- Since:
- 1.11.0
-
issueRequireSignedRequests
public WsTrustConfig.WsTrustConfigBuilder issueRequireSignedRequests(boolean issueRequireSignedRequests) Require signed SOAP requests for WS-Trust ISSUE.
Default: true- Returns:
this.- Since:
- 1.13.0
-
issueRequireTimestamp
WS-Trust ISSUE requires timestamp.
Default: true- Returns:
this.- Since:
- 1.15.0
-
issueRequireSignedAssertions
@Deprecated public WsTrustConfig.WsTrustConfigBuilder issueRequireSignedAssertions(boolean issueRequireSignedAssertions) Deprecated.Require signed SOAP requests for WS-Trust ISSUE.
Default: true- Returns:
this.- Since:
- 1.13.0
-
renewRequireSignedRequests
public WsTrustConfig.WsTrustConfigBuilder renewRequireSignedRequests(boolean renewRequireSignedRequests) Require signed SOAP requests for WS-Trust RENEW.
Default: true- Returns:
this.- Since:
- 1.13.0
-
doSignResponse
Sign SOAP responses.
Default: true- Returns:
this.- Since:
- 1.13.0
-
lifetimeMin
Lifetime expiration in minutes.
Default: 480 (8 hours)- Returns:
this.- Since:
- 1.12.0
-
soapVersion
SOAP version.
Default: SOAP_1_X (alternatives SOAP_1_1, SOAP_1_2)- Returns:
this.
-
soapHeadersToConsider
SOAP headers considered by the WS-Trust implementation.
Default: not set- Returns:
this.
-
allowedNetworks
List of client networks allowed (usingtrustbroker.config.network.networkHeaderHTTP header). Default: not restricted- Returns:
this.- Since:
- 1.13.0
-
enforceNetwork
Client networks enforced if configured (allowedNetworks).
Default: true - set to false in order to warn for violations only- Returns:
this.- Since:
- 1.13.0
-
allowedClientIpRegex
Regex of client IPs allowed (usingX-Forwarded-ForHTTP header).- Returns:
this.- Since:
- 1.13.0
-
enforceClientIp
Client IPs enforced if configured (allowedClientIpRegex).
Default: true - set to false in order to warn for violations only- Returns:
this.- Since:
- 1.13.0
-
build
-
toString
-