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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeystoreEntryUsageViewModel(Long id, EViewKeystoreEntryUsageType usageType, String subject)Creates a newKeystoreEntryUsageViewModelinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplayName(Locale locale)Returns the display name of the certificate usage.StringgetIconStyleClass()Returns the style class of the icon of the certificate usage.LonggetId()The unique identifier of the certificate usage.StringgetSubject()The subject of the certificate usage (e.g. the domain name, if used for TLS).EViewKeystoreEntryUsageTypegetUsageType()The type of usage of the certificate.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
KeystoreEntryUsageViewModel
public KeystoreEntryUsageViewModel(Long id, EViewKeystoreEntryUsageType usageType, String subject)
Creates a newKeystoreEntryUsageViewModelinstance.- 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.
-
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).
-
-