class TokenService {

    public TokenInitStatusInfo getSoftwareTokenInitStatus() {
        try {
            boolean isSoftwareTokenInitialized = isSoftwareTokenInitialized();
            if (isSoftwareTokenInitialized) {
                return TokenInitStatusInfo.INITIALIZED;
            } else {
                return TokenInitStatusInfo.NOT_INITIALIZED;
            }
        } catch (SignerNotReachableException e) {
            log.error("Could not get software token status from signer", e);
            return TokenInitStatusInfo.UNKNOWN;
        }
    }

    @Autowired public  TokenService(SignerProxyFacade signerProxyFacade,
            PossibleActionsRuleEngine possibleActionsRuleEngine,
            AuditDataHelper auditDataHelper);

}