Class ArtifactResolution

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

public class ArtifactResolution extends Object
SAML artifact resolution protocol configuration.
See Also:
  • Constructor Details

    • ArtifactResolution

      public ArtifactResolution()
    • ArtifactResolution

      public ArtifactResolution(String serviceUrl, int index, int artifactLifetimeSecs, int artifactReapIntervalSecs, Boolean persistentCache, String proxyUrl, swiss.trustbroker.common.config.KeystoreProperties truststore, swiss.trustbroker.common.config.KeystoreProperties keystore)
      Deprecated.
      Use NetworkConfig.proxyUrl
      Creates a new ArtifactResolution instance.
      Parameters:
      serviceUrl - XTB Artifact Resolution service URL, included in the metadata.
      Note: Currently, the path that is requested on XTB needs to be /api/v1/saml/arp.
      index - XTB Artifact Resolution index.
      Default: 0
      artifactLifetimeSecs - Lifetime of artifacts in cache in seconds.
      artifactReapIntervalSecs - Artifact cache reap interval in seconds.
      persistentCache - Persist artifact cache. Required for multi-line setups.
      proxyUrl - Default proxy URL for artifact resolution.
      truststore - Default truststore for artifact resolution.
      keystore - Default keystore for artifact resolution.
      See Also:
  • Method Details

    • builder

    • getServiceUrl

      public String getServiceUrl()
      XTB Artifact Resolution service URL, included in the metadata.
      Note: Currently, the path that is requested on XTB needs to be /api/v1/saml/arp.
    • getIndex

      public int getIndex()
      XTB Artifact Resolution index.
      Default: 0
    • getArtifactLifetimeSecs

      public int getArtifactLifetimeSecs()
      Lifetime of artifacts in cache in seconds.
    • getArtifactReapIntervalSecs

      public int getArtifactReapIntervalSecs()
      Artifact cache reap interval in seconds.
    • getPersistentCache

      public Boolean getPersistentCache()
      Persist artifact cache. Required for multi-line setups.
    • getProxyUrl

      @Deprecated public String getProxyUrl()
      Deprecated.
      Use NetworkConfig.proxyUrl
      Default proxy URL for artifact resolution.
      See Also:
    • getTruststore

      public swiss.trustbroker.common.config.KeystoreProperties getTruststore()
      Default truststore for artifact resolution.
    • getKeystore

      public swiss.trustbroker.common.config.KeystoreProperties getKeystore()
      Default keystore for artifact resolution.
    • setServiceUrl

      public void setServiceUrl(String serviceUrl)
      XTB Artifact Resolution service URL, included in the metadata.
      Note: Currently, the path that is requested on XTB needs to be /api/v1/saml/arp.
    • setIndex

      public void setIndex(int index)
      XTB Artifact Resolution index.
      Default: 0
    • setArtifactLifetimeSecs

      public void setArtifactLifetimeSecs(int artifactLifetimeSecs)
      Lifetime of artifacts in cache in seconds.
    • setArtifactReapIntervalSecs

      public void setArtifactReapIntervalSecs(int artifactReapIntervalSecs)
      Artifact cache reap interval in seconds.
    • setPersistentCache

      public void setPersistentCache(Boolean persistentCache)
      Persist artifact cache. Required for multi-line setups.
    • setProxyUrl

      @Deprecated public void setProxyUrl(String proxyUrl)
      Deprecated.
      Use NetworkConfig.proxyUrl
      Default proxy URL for artifact resolution.
      See Also:
    • setTruststore

      public void setTruststore(swiss.trustbroker.common.config.KeystoreProperties truststore)
      Default truststore for artifact resolution.
    • setKeystore

      public void setKeystore(swiss.trustbroker.common.config.KeystoreProperties keystore)
      Default keystore for artifact resolution.
    • 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