diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2016-02-03 19:20:31 +0100 |
|---|---|---|
| committer | Endi S. Dewata <edewata@redhat.com> | 2016-02-05 22:40:44 +0100 |
| commit | 9bd94a0a54793a0720b803846ce2291e5064c2ae (patch) | |
| tree | 0e0d5731923844454c23fc89e7a10b5abb708a58 /base/tps/shared/conf | |
| parent | 987dda15acdd6e6f4c7c477fed122a76ad40260c (diff) | |
| download | pki-9bd94a0a54793a0720b803846ce2291e5064c2ae.tar.gz pki-9bd94a0a54793a0720b803846ce2291e5064c2ae.tar.xz pki-9bd94a0a54793a0720b803846ce2291e5064c2ae.zip | |
Added resource bundle for token state labels.
The labels for token states and the transitions are now stored
in token-states.properties. The default file will be stored
in the /usr/share/pki/tps/conf, but it can be overriden by
copying and customizing the file into <instance>/tps/conf.
When the UI retrieves the token data the labels for the current
state and the valid transitions will be loaded from the file
and returned to the UI. The UI will show the transition labels
in the dropdown list for changing token status.
https://fedorahosted.org/pki/ticket/1289
https://fedorahosted.org/pki/ticket/1291
Diffstat (limited to 'base/tps/shared/conf')
| -rw-r--r-- | base/tps/shared/conf/token-states.properties | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/base/tps/shared/conf/token-states.properties b/base/tps/shared/conf/token-states.properties new file mode 100644 index 000000000..f67688d4b --- /dev/null +++ b/base/tps/shared/conf/token-states.properties @@ -0,0 +1,21 @@ +# Token states +UNINITIALIZED = Uninitialized +ACTIVE = Active +TEMP_LOST = Temporarily lost +PERM_LOST = Permanently lost +DAMAGED = Physically damaged +TEMP_LOST_PERM_LOST = Temporarily lost then permanently lost +TERMINATED = Terminated + +# Token state transitions +UNINITIALIZED.DAMAGED = This token has been physically damaged. +UNINITIALIZED.PERM_LOST = This token has been permanently lost. +UNINITIALIZED.TEMP_LOST = This token has been temporarily lost. +UNINITIALIZED.TERMINATED = This token has been terminated. +TEMP_LOST.ACTIVE = This temporarily lost token has been found. +TEMP_LOST.PERM_LOST = This temporarily lost token has become permanently lost. +TEMP_LOST.TERMINATED = This temporarily lost token has been terminated. +ACTIVE.DAMAGED = This token has been physically damaged. +ACTIVE.PERM_LOST = This token has been permanently lost. +ACTIVE.TEMP_LOST = This token has been temporarily lost. +ACTIVE.TERMINATED = This token has been terminated. |
