Class UiInformationProvider
java.lang.Object
se.swedenconnect.bankid.idp.authn.api.UiInformationProvider
Bean providing UI information for consumption by the frontend.
- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
ConstructorsConstructorDescriptionUiInformationProvider(UiProperties uiProperties, long startRetryDuration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the provider logotype to display in the UI footer.byte[]Gets the provider favicon in PNG format.byte[]Gets the provider favicon in SVG format.getSpInformation(Saml2ServiceProviderUiInfo uiInfo, RelyingPartyData relyingParty) Obtains the information for the current SP information.getUiInformation(Saml2ServiceProviderUiInfo uiInfo, RelyingPartyData relyingParty) Gets the UI information to display.
-
Constructor Details
-
UiInformationProvider
Constructor.- Parameters:
uiProperties- the UI propertiesstartRetryDuration- number of minutes to inform user that qr code will be displayed
-
-
Method Details
-
getUiInformation
public UiInformation getUiInformation(Saml2ServiceProviderUiInfo uiInfo, RelyingPartyData relyingParty) Gets the UI information to display.- Parameters:
uiInfo- the SP UI inforelyingParty- the RP data- Returns:
- an
UiInformation
-
getProviderLogo
Gets the provider logotype to display in the UI footer.- Returns:
- a logotype as byte array
- Throws:
IOException- seeIOUtilsmethod toByteArray(InputStream inputStream)
-
getProviderSvgFavicon
Gets the provider favicon in SVG format.- Returns:
- an SVG favicon as byte array
- Throws:
IOException- seeIOUtilsmethod toByteArray(InputStream inputStream)
-
getProviderPngFavicon
Gets the provider favicon in PNG format.- Returns:
- an PNG favicon as byte array
- Throws:
IOException- seeIOUtilsmethod toByteArray(InputStream inputStream)
-
getSpInformation
public SpInformation getSpInformation(Saml2ServiceProviderUiInfo uiInfo, RelyingPartyData relyingParty) Obtains the information for the current SP information.- Parameters:
uiInfo- the SP UI inforelyingParty- the RP data- Returns:
- a
SpInformation
-