Class IdServerBrandingService

java.lang.Object
com.io7m.idstore.server.internal.IdServerBrandingService
All Implemented Interfaces:
IdServiceType

public final class IdServerBrandingService extends Object implements IdServiceType
The service that supplies branding information.
  • Method Details

    • create

      public static IdServerBrandingService create(IdServerStrings strings, IdFMTemplateService templates, IdServerBrandingConfiguration configuration) throws IOException
      Create a branding service.
      Parameters:
      strings - The server strings
      configuration - The branding configuration
      templates - The template service
      Returns:
      A branding service
      Throws:
      IOException - On errors
    • logoImage

      public byte[] logoImage()
      Returns:
      The bytes of an SVG logo image
    • title

      public String title()
      Returns:
      The product title
    • xButtonCSS

      public String xButtonCSS()
      Returns:
      The xButton CSS
    • css

      public String css()
      Returns:
      The CSS text
    • description

      public String description()
      Specified by:
      description in interface IdServiceType
      Returns:
      The service description
    • htmlTitle

      public String htmlTitle(String name)
      Parameters:
      name - The name/phrase
      Returns:
      An HTML title for the given name/phrase
    • loginExtraText

      public Optional<String> loginExtraText()
      Returns:
      The extra text inserted below the login form (XHTML)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • emailSubject

      public String emailSubject(String subject)
      The branded email subject.
      Parameters:
      subject - The subject txt
      Returns:
      The branded string