|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hardtokenmgmt.core.util.DetermineCardStatus
public class DetermineCardStatus
Class used to determine the status of the card and from that determine the menu choices
| Field Summary | |
|---|---|
static int |
CARD_EMPTY
The card seems to be empty |
static int |
CARD_EXPIRING
One of the certificates is about to expire |
static int |
CARD_LOCKED
The card have at least one PIN locked. |
static int |
CARD_NOLOGONCERTIFICATE
if no certificate suitable for logon could be found on an admin token. |
static int |
CARD_NOPROCESSABLECARD
If no processable card is inserted in the reader. |
static int |
CARD_NOTVALID
if the tokens logon certificate have expired or not yet valid |
static int |
CARD_ONHOLD
Status returned if the processable card is on hold and should be reactivated |
static int |
CARD_PERSONALIZED_WITH_OTHERSYSTEM
if the token have been personalized but with another system. |
static int |
CARD_PERSONLIZED
The card seems already personlized, this is determed by the existens of certificates on the token. |
static int |
CARD_REVOKED
if the token have been revoked |
static int |
CARD_TOMANYPROCESSABLECARDS
If more that more processable card is inserted. this status is returned to inform the administrator to remove one of them. |
static int |
CARD_UNKNOWN
The status of the card couldn't be determined |
static int |
NO_PUK_DATA_UPLOADED
if the token requires PUK data to be uploaded to database prior to manage it, but no data haven't been uploaded yet. |
| Constructor Summary | |
|---|---|
DetermineCardStatus()
|
|
| Method Summary | |
|---|---|
static int |
getAdminCardStatus(boolean checkRevocation)
Method used to check the status of the administration card. |
static int |
getCardStatus()
Method that analysis the card a determines which page that should be shown to the end user. |
static boolean |
isCardEmpty(IToken token)
Method determining if a card is empty. i.e doesn't have any certificates |
static boolean |
isCardLocked(IToken processableToken,
boolean onlyBasicPIN)
Method used to determine if a card is locked or not, onlyBasicPIN flag indicates that inly the basic PIN should be checked. |
static boolean |
isCertExpiring(java.security.cert.X509Certificate cert)
Method used to check if a certificate is about to expire Within the thresholds configured in global.properties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CARD_UNKNOWN
public static final int CARD_NOPROCESSABLECARD
public static final int CARD_TOMANYPROCESSABLECARDS
public static final int CARD_EMPTY
public static final int CARD_PERSONLIZED
public static final int CARD_LOCKED
public static final int CARD_EXPIRING
public static final int CARD_REVOKED
public static final int CARD_PERSONALIZED_WITH_OTHERSYSTEM
public static final int NO_PUK_DATA_UPLOADED
public static final int CARD_NOTVALID
public static final int CARD_NOLOGONCERTIFICATE
public static final int CARD_ONHOLD
| Constructor Detail |
|---|
public DetermineCardStatus()
| Method Detail |
|---|
public static int getCardStatus()
public static int getAdminCardStatus(boolean checkRevocation)
public static boolean isCardLocked(IToken processableToken,
boolean onlyBasicPIN)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
iaik.pkcs.pkcs11.TokenException
OperationNotSupportedExceptionpublic static boolean isCertExpiring(java.security.cert.X509Certificate cert)
cert - to check
public static boolean isCardEmpty(IToken token)
throws OperationNotSupportedException,
iaik.pkcs.pkcs11.TokenException
token - the token to check
iaik.pkcs.pkcs11.TokenException
OperationNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||