Class UiInformationProvider

java.lang.Object
se.swedenconnect.bankid.idp.authn.api.UiInformationProvider

public class UiInformationProvider extends Object
Bean providing UI information for consumption by the frontend.
Author:
Martin Lindström, Felix Hellman
  • Constructor Details

    • UiInformationProvider

      public UiInformationProvider(UiProperties uiProperties, long startRetryDuration)
      Constructor.
      Parameters:
      uiProperties - the UI properties
      startRetryDuration - 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 info
      relyingParty - the RP data
      Returns:
      an UiInformation
    • getProviderLogo

      public byte[] getProviderLogo() throws IOException
      Gets the provider logotype to display in the UI footer.
      Returns:
      a logotype as byte array
      Throws:
      IOException - see IOUtils method toByteArray(InputStream inputStream)
    • getProviderSvgFavicon

      public byte[] getProviderSvgFavicon() throws IOException
      Gets the provider favicon in SVG format.
      Returns:
      an SVG favicon as byte array
      Throws:
      IOException - see IOUtils method toByteArray(InputStream inputStream)
    • getProviderPngFavicon

      public byte[] getProviderPngFavicon() throws IOException
      Gets the provider favicon in PNG format.
      Returns:
      an PNG favicon as byte array
      Throws:
      IOException - see IOUtils method toByteArray(InputStream inputStream)
    • getSpInformation

      public SpInformation getSpInformation(Saml2ServiceProviderUiInfo uiInfo, RelyingPartyData relyingParty)
      Obtains the information for the current SP information.
      Parameters:
      uiInfo - the SP UI info
      relyingParty - the RP data
      Returns:
      a SpInformation