be.ehealth.technicalconnector.service.sts

## Class SAMLRequestFactory

- java.lang.Object
- - be.ehealth.technicalconnector.service.sts.SAMLRequestFactory

-     public class SAMLRequestFactory
      extends Object

  Factory class for creating `SAMLRequest` instances.

  This factory provides a centralized way to create SAML requests with the appropriate Holder-of-Key (HOK) method based on the SAML token version.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SAMLRequestFactory()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static SAMLRequest` | `create(Credential headerCredential, Credential bodyCredential, SAMLToken.Version version, Duration duration)` Creates a new `SAMLRequest` with the specified credentials, version, and duration.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SAMLRequestFactory

          public SAMLRequestFactory()

  - ### Method Detail

    - #### create

          public static SAMLRequest create(Credential headerCredential,
                                           Credential bodyCredential,
                                           SAMLToken.Version version,
                                           Duration duration)

      Creates a new `SAMLRequest` with the specified credentials, version, and duration.

      The appropriate Holder-of-Key method is automatically determined based on the provided SAML token version.

Connector Package PERSDENTIST 4.9.5 API
Copyright © {inceptionYear}-2026 eHealth. All Rights Reserved.