Interface IKeystoreEntryViewModel
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CertificateViewModel
Common interface for view models of key store entries.
- Since:
- 8.5.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull InstantGets the instant when this keystore entry was created.default LocalDateReturns the creation date as aLocalDate.default LocalDateTimeReturns the creation date and time as aLocalDateTime.Gets the display name of the issuer of this keystore entry.Returns the issues with the keystore entry.Returns the keystore that contains this keystore entry.Returns the serial number of the keystore entry if the keystore entry is a certificate.getStateDescription(Locale locale) Returns the description of the state of the keystore entry.Returns the status of this keystore entry.Gets the display name of the subject of this keystore entry.Returns the traits of the keystore entry.@NotNull EViewKeystoreEntryTypegetType()Gets the type of the keystore entry.default StringgetTypeDisplayName(Locale locale) Returns the localized display name of the type of the keystore entry.@NotNull InstantGets the instant when this keystore entry was last updated.default LocalDateReturns the last updated date as aLocalDate.default LocalDateTimeReturns the last updated date and time as aLocalDateTime.A list of the usages of the keystore entry sorted by their localized display name.default InstantGets the instant when this keystore entry is valid from.default LocalDateReturns the valid from date as aLocalDate.default LocalDateTimeReturns the valid from date and time as aLocalDateTime.de.xima.cmn.time.DateTimeRangeReturns the validity of the keystore entry.default InstantGets the instant when this keystore entry is valid until.default LocalDateReturns the valid until date as aLocalDate.default LocalDateTimeReturns the valid until date and time as aLocalDateTime.default booleanhasIssue(EViewKeystoreEntryIssue issue) Returns whether the keystore entry has the given issue or not.booleanReturns whether this keystore entry is deletable or not.booleanReturns whether this keystore entry is downloadable or not.default booleanisNew()Returns whether the certificate is new or not.default booleanReturns whether this keystore entry has been recently updated or not.
-
Field Details
-
UPDATE_OFFSET_IN_MINUTES
static final int UPDATE_OFFSET_IN_MINUTES- See Also:
-
-
Method Details
-
getCreatedAt
Gets the instant when this keystore entry was created.- Returns:
- The instant when this keystore entry was created.
-
getCreatedAtLocalDate
-
getCreatedAtLocalDateTime
Returns the creation date and time as aLocalDateTime.- Returns:
- The creation date and time as a
LocalDateTime.
-
getIssuerDisplayName
String getIssuerDisplayName()Gets the display name of the issuer of this keystore entry.- Returns:
- The display name of the issuer of this keystore entry.
-
getIssues
List<KeyStoreEntryIssueDetailModel> getIssues()Returns the issues with the keystore entry.- Returns:
- The issues with the keystore entry.
-
getKeystore
KeystoreViewModel getKeystore()Returns the keystore that contains this keystore entry.- Returns:
- The keystore that contains this keystore entry.
-
getSerialNumber
String getSerialNumber()Returns the serial number of the keystore entry if the keystore entry is a certificate.- Returns:
- The serial number of the keystore entry if the keystore entry is a certificate or
nullotherwise. - See Also:
-
getStateDescription
-
getStatus
EViewStatus getStatus()Returns the status of this keystore entry.- Returns:
- The status of this keystore entry.
-
getSubjectDisplayName
String getSubjectDisplayName()Gets the display name of the subject of this keystore entry.- Returns:
- The display name of the subject of this keystore entry.
-
getTraits
List<EKeystoreEntryTrait> getTraits()Returns the traits of the keystore entry.- Returns:
- The traits of the keystore entry.
-
getType
Gets the type of the keystore entry.- Returns:
- The type of the keystore entry.
-
getTypeDisplayName
-
getUpdatedAt
Gets the instant when this keystore entry was last updated.- Returns:
- The instant when this keystore entry was last updated.
-
getUpdatedAtLocalDate
-
getUpdatedAtLocalDateTime
Returns the last updated date and time as aLocalDateTime.- Returns:
- The last updated date and time as a
LocalDateTime.
-
getUsages
List<KeystoreEntryUsageViewModel> getUsages()A list of the usages of the keystore entry sorted by their localized display name. -
getValidFrom
Gets the instant when this keystore entry is valid from.- Returns:
- The instant when this keystore entry is valid from.
-
getValidFromLocalDate
-
getValidFromLocalDateTime
Returns the valid from date and time as aLocalDateTime.- Returns:
- The valid from date and time as a
LocalDateTime.
-
getValidUntil
Gets the instant when this keystore entry is valid until.- Returns:
- The instant when this keystore entry is valid until.
-
getValidUntilLocalDate
-
getValidUntilLocalDateTime
Returns the valid until date and time as aLocalDateTime.- Returns:
- The valid until date and time as a
LocalDateTime.
-
getValidity
de.xima.cmn.time.DateTimeRange getValidity()Returns the validity of the keystore entry.- Returns:
- The validity of the keystore entry.
-
hasIssue
Returns whether the keystore entry has the given issue or not.- Parameters:
issue- The issue to check for.- Returns:
- Whether the keystore entry has the given issue or not.
-
isDeletable
boolean isDeletable()Returns whether this keystore entry is deletable or not.- Returns:
- Whether this keystore entry is deletable or not.
-
isDownloadable
boolean isDownloadable()Returns whether this keystore entry is downloadable or not.- Returns:
- Whether this keystore entry is downloadable or not.
-
isNew
default boolean isNew()Returns whether the certificate is new or not. A certificate is considered new if it was created within the last 5 minutes.- Returns:
- Whether the certificate is new or not.
-
isRecentlyUpdated
default boolean isRecentlyUpdated()Returns whether this keystore entry has been recently updated or not. An entry is considered recently updated if it was updated within the last 5 minutes.- Returns:
- Whether this keystore entry has been recently updated or not.
-