Class RelyingPartyData

java.lang.Object
se.swedenconnect.bankid.idp.rp.RelyingPartyData

public class RelyingPartyData extends Object
The data associated to a BankID relying party.
Author:
Martin Lindström, Felix Hellman
  • Constructor Details

    • RelyingPartyData

      public RelyingPartyData(BankIDClient client, List<String> entityIds, DisplayText loginText, DisplayText fallbackSignText, RelyingPartyUiInfo uiInfo, BankIdRequirement requirement)
      Constructor.
      Parameters:
      client - the BankID client
      entityIds - the SAML entityID:s for this RP
      loginText - the login text to use (may be null)
      fallbackSignText - the fallback text for signature messages (must be set)
      uiInfo - optional UI info
      requirement - optional specific BankID requirements
  • Method Details

    • getId

      public String getId()
      Gets the ID for this Relying Party.
      Returns:
      the ID
    • getClient

      public BankIDClient getClient()
      Gets the BankID client for this Relying Party.
      Returns:
      a BankIDClient
    • getEntityIds

      public List<String> getEntityIds()
      Gets a list of all SAML entityID:s (SP:s) that this Relying Party serves.

      If the list is empty and the IdP is in test mode, this means that all SP:s are served by this RP.

      Returns:
      a list of entityID:s
    • getLoginText

      public DisplayText getLoginText()
      Gets text to display when authenticating.
      Returns:
      the text or null
    • getFallbackSignText

      public DisplayText getFallbackSignText()
      Gets the text to display when signing if a SignMessage is not received.
      Returns:
      the sign text
    • getUiInfo

      public RelyingPartyUiInfo getUiInfo()
      Gets the RelyingPartyUiInfo if present
      Returns:
      the RelyingPartyUiInfo or null
    • getRequirement

      public BankIdRequirement getRequirement()
      Gets the BankID requirements for the relaying party.
      Returns:
      the requirements
    • matches

      public boolean matches(String entityId)
      Predicate that tells whether the supplied SAML entityID is served by this RP.
      Parameters:
      entityId - the SAML SP entityID
      Returns:
      true if this RP serves this SP and false otherwise