Class KeystoreEntryUsageViewModel

java.lang.Object
de.xima.fc.certificate.gui.internal.administration.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:
  • Constructor Details

    • 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 Details

    • 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.
    • getUsageType

      public EViewKeystoreEntryUsageType getUsageType()
      The type of usage of the certificate.
    • getSubject

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object