Class IdmConfig

java.lang.Object
swiss.trustbroker.config.dto.IdmConfig

public class IdmConfig extends Object
Configuration for optional IDM integration.
Potentially breaking changes:
  • With 1.10.0 value of attributes changed to Object to allow nested structures.
See Also:
  • 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 new IdmConfig instance.
      Parameters:
      enabled - IDM enabled.
      Default: true (but there is no default IDM service implementation)
      endpointUrl - Endpoint URL of the IDM
      tlsProtocol - 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

      public static IdmConfig.IdmConfigBuilder builder()
    • isEnabled

      public boolean isEnabled()
      IDM enabled.
      Default: true (but there is no default IDM service implementation)
    • getEndpointUrl

      public String getEndpointUrl()
      Endpoint URL of the IDM
    • getTlsProtocol

      public String 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

      public TechUserProperties getTechuser()
      Technical user for accessing the IDM.
    • getSignercert

      public swiss.trustbroker.common.config.KeystoreProperties getSignercert()
      Security token signer.
    • getSecToken

      public SecToken getSecToken()
      Security token for accessing the IDM.
    • getMappings

      public List<swiss.trustbroker.common.config.RegexNameValue> getMappings()
      Mappings that might be needed by the implementation.
    • getAttributes

      public Map<String,Object> getAttributes()
      Custom attributes that might be needed by the implementation.
    • getTraceIdHeader

      public String 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

      public void setEndpointUrl(String endpointUrl)
      Endpoint URL of the IDM
    • setTlsProtocol

      public void setTlsProtocol(String tlsProtocol)
      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

      public void setTechuser(TechUserProperties techuser)
      Technical user for accessing the IDM.
    • setSignercert

      public void setSignercert(swiss.trustbroker.common.config.KeystoreProperties signercert)
      Security token signer.
    • setSecToken

      public void setSecToken(SecToken secToken)
      Security token for accessing the IDM.
    • setMappings

      public void setMappings(List<swiss.trustbroker.common.config.RegexNameValue> mappings)
      Mappings that might be needed by the implementation.
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Custom attributes that might be needed by the implementation.
    • setTraceIdHeader

      public void setTraceIdHeader(String traceIdHeader)
      HTTP trace header supported by service to correlate calls from XTB.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object