Package se.swedenconnect.bankid.idp.rp
Class RelyingPartyData
java.lang.Object
se.swedenconnect.bankid.idp.rp.RelyingPartyData
The data associated to a BankID relying party.
- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
ConstructorDescriptionRelyingPartyData
(BankIDClient client, List<String> entityIds, DisplayText loginText, DisplayText fallbackSignText, RelyingPartyUiInfo uiInfo, BankIdRequirement requirement) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the BankID client for this Relying Party.Gets a list of all SAML entityID:s (SP:s) that this Relying Party serves.Gets the text to display when signing if aSignMessage
is not received.getId()
Gets the ID for this Relying Party.Gets text to display when authenticating.Gets the BankID requirements for the relaying party.Gets theRelyingPartyUiInfo
if presentboolean
Predicate that tells whether the supplied SAML entityID is served by this RP.
-
Constructor Details
-
RelyingPartyData
public RelyingPartyData(BankIDClient client, List<String> entityIds, DisplayText loginText, DisplayText fallbackSignText, RelyingPartyUiInfo uiInfo, BankIdRequirement requirement) Constructor.- Parameters:
client
- the BankID cliententityIds
- the SAML entityID:s for this RPloginText
- the login text to use (may benull
)fallbackSignText
- the fallback text for signature messages (must be set)uiInfo
- optional UI inforequirement
- optional specific BankID requirements
-
-
Method Details
-
getId
Gets the ID for this Relying Party.- Returns:
- the ID
-
getClient
Gets the BankID client for this Relying Party.- Returns:
- a
BankIDClient
-
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
Gets text to display when authenticating.- Returns:
- the text or
null
-
getFallbackSignText
Gets the text to display when signing if aSignMessage
is not received.- Returns:
- the sign text
-
getUiInfo
Gets theRelyingPartyUiInfo
if present- Returns:
- the
RelyingPartyUiInfo
ornull
-
getRequirement
Gets the BankID requirements for the relaying party.- Returns:
- the requirements
-
matches
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 andfalse
otherwise
-