Class BankIDMessageImpl

java.lang.Object
se.swedenconnect.bankid.rpapi.support.BankIDMessageImpl
All Implemented Interfaces:
BankIDMessage

public class BankIDMessageImpl extends Object implements BankIDMessage
The implementation of BankIDMessage.
Author:
Martin Lindström
  • Constructor Details

    • BankIDMessageImpl

      public BankIDMessageImpl(BankIDMessage.ShortName shortName, String... messageCodes)
      Constructor.
      Parameters:
      shortName - the message short name
      messageCodes - the message code(s)
    • BankIDMessageImpl

      public BankIDMessageImpl(BankIDMessage.ShortName shortName, List<String> messageCodes)
      Constructor.
      Parameters:
      shortName - the message short name
      messageCodes - the message code(s)
  • Method Details

    • getShortName

      public BankIDMessage.ShortName getShortName()
      Returns the "short name" for the message to displayed.

      See section 6 of the BankID Relying Party Guidelines.

      Specified by:
      getShortName in interface BankIDMessage
      Returns:
      the message short name
    • getMessageCodes

      public List<String> getMessageCodes()
      Returns an ordered list containing the message code(s) for this message.

      If more than one message code is returned, the idea is to display the message divided into parts, for example in separate p-tags.

      Specified by:
      getMessageCodes in interface BankIDMessage
      Returns:
      a (non-empty) list of message codes