Class KeystoreEntryUsageViewModel

  • All Implemented Interfaces:
    Serializable

    public final class KeystoreEntryUsageViewModel
    extends Object
    implements Serializable
    View model for certificate usages.
    Since:
    8.5.0
    Author:
    XIMA Media GmbH
    See Also:
    Serialized Form
    • Constructor Detail

      • KeystoreEntryUsageViewModel

        public KeystoreEntryUsageViewModel​(Long id,
                                           EViewKeystoreEntryUsageType usageType,
                                           String subject)
        Creates a new KeystoreEntryUsageViewModel instance.
        Parameters:
        id - The unique identifier of the certificate usage.
        usageType - The type of usage of the certificate.
        subject - The subject of the certificate usage (e.g. the domain name, if used for TLS).
    • Method Detail

      • getDisplayName

        public String getDisplayName​(Locale locale)
        Returns the display name of the certificate usage.
        Parameters:
        locale - The locale to use for the display name.
        Returns:
        The display name of the certificate usage.
      • getIconStyleClass

        public String getIconStyleClass()
        Returns the style class of the icon of the certificate usage.
        Returns:
        The style class of the icon of the certificate usage.
      • getId

        public Long getId()
        The unique identifier of the certificate usage.
      • getSubject

        public String getSubject()
        The subject of the certificate usage (e.g. the domain name, if used for TLS).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object