Class KeystoreViewModel

    • Constructor Detail

      • KeystoreViewModel

        public KeystoreViewModel​(Long id,
                                 String name,
                                 String description,
                                 EViewKeystoreType keystoreType,
                                 Long assigneeId,
                                 EViewStatus status,
                                 boolean defaultKeyStore,
                                 int entryCount)
        Creates a new KeystoreViewModel instance.
        Parameters:
        id - The (database) id of the key store.
        name - The name of the key store.
        description - An optional description of the key store.
        keystoreType - Assigned to a user, client or system.
        assigneeId - The ID of the owner (user or tenant) or NULL for system keystores.
        status - The aggregated status of the validity of the certificates in the key store. RED: At least one certificate is expired. YELLOW: At least one certificate is about to expire or has a problem. GREEN: No certificate is expired or about to expire and no certificate has a problem.
        defaultKeyStore - Whether the keystore is the default keystore.
        entryCount - The number of entries in the keystore.
    • Method Detail

      • getDisplayName

        public String getDisplayName​(Locale locale)
      • getIconStyleClass

        public String getIconStyleClass()
      • getHeaderRowField

        public String getHeaderRowField()
      • isDeletable

        public boolean isDeletable()
        Whether the keystore is deletable.
      • isDownloadable

        public boolean isDownloadable()
        Whether the keystore is downloadable.
      • getId

        public Long getId()
        The (database) id of the key store.
      • getName

        public String getName()
        The name of the key store.
      • getDescription

        public String getDescription()
        An optional description of the key store.
      • getKeystoreType

        public EViewKeystoreType getKeystoreType()
        Assigned to a user, client or system.
      • getAssigneeId

        public Long getAssigneeId()
        The ID of the owner (user or tenant) or NULL for system keystores.
      • getStatus

        public EViewStatus getStatus()
        The aggregated status of the validity of the certificates in the key store. RED: At least one certificate is expired. YELLOW: At least one certificate is about to expire or has a problem. GREEN: No certificate is expired or about to expire and no certificate has a problem.
      • isDefaultKeyStore

        public boolean isDefaultKeyStore()
        Whether the keystore is the default keystore.
      • getEntryCount

        public int getEntryCount()
        The number of entries in the keystore.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object