Package swiss.trustbroker.config.dto
Class IdmConfig
java.lang.Object
swiss.trustbroker.config.dto.IdmConfig
Configuration for optional IDM integration.
Potentially breaking changes:
Potentially breaking changes:
- With 1.10.0 value of attributes changed to Object to allow nested structures.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionIdmConfig(boolean enabled, String endpointUrl, String tlsProtocol, swiss.trustbroker.common.config.KeystoreProperties keystore, swiss.trustbroker.common.config.KeystoreProperties truststore, TechUserProperties techuser, swiss.trustbroker.common.config.KeystoreProperties signercert, SecToken secToken, List<swiss.trustbroker.common.config.RegexNameValue> mappings, Map<String, Object> attributes, String traceIdHeader) Creates a newIdmConfiginstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic IdmConfig.IdmConfigBuilderbuilder()protected booleanbooleanCustom attributes that might be needed by the implementation.Endpoint URL of the IDMswiss.trustbroker.common.config.KeystorePropertiesKeystore for accessing the IDM.List<swiss.trustbroker.common.config.RegexNameValue> Mappings that might be needed by the implementation.Security token for accessing the IDM.swiss.trustbroker.common.config.KeystorePropertiesSecurity token signer.Technical user for accessing the IDM.TLS protocol to use for the connection.HTTP trace header supported by service to correlate calls from XTB.swiss.trustbroker.common.config.KeystorePropertiesTruststore for accessing the IDM.inthashCode()booleanIDM enabled.voidsetAttributes(Map<String, Object> attributes) Custom attributes that might be needed by the implementation.voidsetEnabled(boolean enabled) IDM enabled.voidsetEndpointUrl(String endpointUrl) Endpoint URL of the IDMvoidsetKeystore(swiss.trustbroker.common.config.KeystoreProperties keystore) Keystore for accessing the IDM.voidsetMappings(List<swiss.trustbroker.common.config.RegexNameValue> mappings) Mappings that might be needed by the implementation.voidsetSecToken(SecToken secToken) Security token for accessing the IDM.voidsetSignercert(swiss.trustbroker.common.config.KeystoreProperties signercert) Security token signer.voidsetTechuser(TechUserProperties techuser) Technical user for accessing the IDM.voidsetTlsProtocol(String tlsProtocol) TLS protocol to use for the connection.voidsetTraceIdHeader(String traceIdHeader) HTTP trace header supported by service to correlate calls from XTB.voidsetTruststore(swiss.trustbroker.common.config.KeystoreProperties truststore) Truststore for accessing the IDM.toString()
-
Constructor Details
-
IdmConfig
public IdmConfig() -
IdmConfig
public IdmConfig(boolean enabled, String endpointUrl, String tlsProtocol, swiss.trustbroker.common.config.KeystoreProperties keystore, swiss.trustbroker.common.config.KeystoreProperties truststore, TechUserProperties techuser, swiss.trustbroker.common.config.KeystoreProperties signercert, SecToken secToken, List<swiss.trustbroker.common.config.RegexNameValue> mappings, Map<String, Object> attributes, String traceIdHeader) Creates a newIdmConfiginstance.- Parameters:
enabled- IDM enabled.
Default: true (but there is no default IDM service implementation)endpointUrl- Endpoint URL of the IDMtlsProtocol- TLS protocol to use for the connection.keystore- Keystore for accessing the IDM.truststore- Truststore for accessing the IDM.techuser- Technical user for accessing the IDM.signercert- Security token signer.secToken- Security token for accessing the IDM.mappings- Mappings that might be needed by the implementation.attributes- Custom attributes that might be needed by the implementation.traceIdHeader- HTTP trace header supported by service to correlate calls from XTB.
-
-
Method Details
-
builder
-
isEnabled
public boolean isEnabled()IDM enabled.
Default: true (but there is no default IDM service implementation) -
getEndpointUrl
Endpoint URL of the IDM -
getTlsProtocol
TLS protocol to use for the connection. -
getKeystore
public swiss.trustbroker.common.config.KeystoreProperties getKeystore()Keystore for accessing the IDM. -
getTruststore
public swiss.trustbroker.common.config.KeystoreProperties getTruststore()Truststore for accessing the IDM. -
getTechuser
Technical user for accessing the IDM. -
getSignercert
public swiss.trustbroker.common.config.KeystoreProperties getSignercert()Security token signer. -
getSecToken
Security token for accessing the IDM. -
getMappings
Mappings that might be needed by the implementation. -
getAttributes
Custom attributes that might be needed by the implementation. -
getTraceIdHeader
HTTP trace header supported by service to correlate calls from XTB. -
setEnabled
public void setEnabled(boolean enabled) IDM enabled.
Default: true (but there is no default IDM service implementation) -
setEndpointUrl
Endpoint URL of the IDM -
setTlsProtocol
TLS protocol to use for the connection. -
setKeystore
public void setKeystore(swiss.trustbroker.common.config.KeystoreProperties keystore) Keystore for accessing the IDM. -
setTruststore
public void setTruststore(swiss.trustbroker.common.config.KeystoreProperties truststore) Truststore for accessing the IDM. -
setTechuser
Technical user for accessing the IDM. -
setSignercert
public void setSignercert(swiss.trustbroker.common.config.KeystoreProperties signercert) Security token signer. -
setSecToken
Security token for accessing the IDM. -
setMappings
Mappings that might be needed by the implementation. -
setAttributes
Custom attributes that might be needed by the implementation. -
setTraceIdHeader
HTTP trace header supported by service to correlate calls from XTB. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-