Class BankIDMessageImpl
java.lang.Object
se.swedenconnect.bankid.rpapi.support.BankIDMessageImpl
- All Implemented Interfaces:
BankIDMessage
The implementation of
BankIDMessage
.- Author:
- Martin Lindström
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.swedenconnect.bankid.rpapi.support.BankIDMessage
BankIDMessage.ShortName
-
Constructor Summary
ConstructorDescriptionBankIDMessageImpl
(BankIDMessage.ShortName shortName, String... messageCodes) Constructor.BankIDMessageImpl
(BankIDMessage.ShortName shortName, List<String> messageCodes) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns an ordered list containing the message code(s) for this message.Returns the "short name" for the message to displayed.
-
Constructor Details
-
BankIDMessageImpl
Constructor.- Parameters:
shortName
- the message short namemessageCodes
- the message code(s)
-
BankIDMessageImpl
Constructor.- Parameters:
shortName
- the message short namemessageCodes
- the message code(s)
-
-
Method Details
-
getShortName
Returns the "short name" for the message to displayed.See section 6 of the BankID Relying Party Guidelines.
- Specified by:
getShortName
in interfaceBankIDMessage
- Returns:
- the message short name
-
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 interfaceBankIDMessage
- Returns:
- a (non-empty) list of message codes
-