Package be.ehealth.technicalconnector.service.sts

# Class SAMLTokenFactory

java.lang.Object
be.ehealth.technicalconnector.service.sts.SAMLTokenFactory

public final class SAMLTokenFactory extends Object
A factory for creating SAMLToken objects.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `SAMLToken`
  `createSamlToken(Element assertion, Credential credential)`
  Creates a new SAMLToken object.
  `static SAMLTokenFactory`
  `getInstance()`
  Gets the single instance of SAMLTokenFactory.

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

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

- ## Method Details

  - ### getInstance

    public static SAMLTokenFactory getInstance()
    Gets the single instance of SAMLTokenFactory.
    Returns:
      single instance of SAMLTokenFactory

  - ### createSamlToken

    public SAMLToken createSamlToken(Element assertion, Credential credential)
    Creates a new SAMLToken object.
    Parameters:
      `assertion` - the assertion
      `credential` - the credential
    Returns:
      the SAML token