@Test public void isSecurityServerInitializedSoftwareTokenUnresolved() { when(tokenService.getSoftwareTokenInitStatus()).thenReturn(TokenInitStatusInfo.UNKNOWN); InitializationStatusDto initStatus = initializationService.getSecurityServerInitializationStatus(); assertTrue(initStatus.isAnchorImported()); assertTrue(initStatus.isServerCodeInitialized()); assertTrue(initStatus.isServerOwnerInitialized()); assertEquals(TokenInitStatusInfo.UNKNOWN, initStatus.getSoftwareTokenInitStatusInfo()); }
public InitializationStatusDto getSecurityServerInitializationStatus() { boolean isAnchorImported = systemService.isAnchorImported(); boolean isServerCodeInitialized = serverConfService.isServerCodeInitialized(); boolean isServerOwnerInitialized = serverConfService.isServerOwnerInitialized(); TokenInitStatusInfo tokenInitStatus = tokenService.getSoftwareTokenInitStatus(); InitializationStatusDto initializationStatusDto = new InitializationStatusDto(); initializationStatusDto.setAnchorImported(isAnchorImported); initializationStatusDto.setServerCodeInitialized(isServerCodeInitialized); initializationStatusDto.setServerOwnerInitialized(isServerOwnerInitialized); initializationStatusDto.setSoftwareTokenInitStatusInfo(tokenInitStatus); return initializationStatusDto; }
InitializationService { public InitializationStatusDto getSecurityServerInitializationStatus() { boolean isAnchorImported = systemService.isAnchorImported(); boolean isServerCodeInitialized = serverConfService.isServerCodeInitialized(); boolean isServerOwnerInitialized = serverConfService.isServerOwnerInitialized(); TokenInitStatusInfo tokenInitStatus = tokenService.getSoftwareTokenInitStatus(); InitializationStatusDto initializationStatusDto = new InitializationStatusDto(); initializationStatusDto.setAnchorImported(isAnchorImported); initializationStatusDto.setServerCodeInitialized(isServerCodeInitialized); initializationStatusDto.setServerOwnerInitialized(isServerOwnerInitialized); initializationStatusDto.setSoftwareTokenInitStatusInfo(tokenInitStatus); return initializationStatusDto; } }
InitializationService { public InitializationStatusDto getSecurityServerInitializationStatus() { boolean isAnchorImported = systemService.isAnchorImported(); boolean isServerCodeInitialized = serverConfService.isServerCodeInitialized(); boolean isServerOwnerInitialized = serverConfService.isServerOwnerInitialized(); TokenInitStatusInfo tokenInitStatus = tokenService.getSoftwareTokenInitStatus(); InitializationStatusDto initializationStatusDto = new InitializationStatusDto(); initializationStatusDto.setAnchorImported(isAnchorImported); initializationStatusDto.setServerCodeInitialized(isServerCodeInitialized); initializationStatusDto.setServerOwnerInitialized(isServerOwnerInitialized); initializationStatusDto.setSoftwareTokenInitStatusInfo(tokenInitStatus); return initializationStatusDto; } @Autowired  InitializationService(SystemService systemService, ServerConfService serverConfService,
            TokenService tokenService, GlobalConfFacade globalConfFacade, ClientService clientService,
            SignerProxyFacade signerProxyFacade, AuditDataHelper auditDataHelper); }
InitializationService { public InitializationStatusDto getSecurityServerInitializationStatus() { boolean isAnchorImported = systemService.isAnchorImported(); boolean isServerCodeInitialized = serverConfService.isServerCodeInitialized(); boolean isServerOwnerInitialized = serverConfService.isServerOwnerInitialized(); TokenInitStatusInfo tokenInitStatus = tokenService.getSoftwareTokenInitStatus(); InitializationStatusDto initializationStatusDto = new InitializationStatusDto(); initializationStatusDto.setAnchorImported(isAnchorImported); initializationStatusDto.setServerCodeInitialized(isServerCodeInitialized); initializationStatusDto.setServerOwnerInitialized(isServerOwnerInitialized); initializationStatusDto.setSoftwareTokenInitStatusInfo(tokenInitStatus); return initializationStatusDto; } @Autowired  InitializationService(SystemService systemService, ServerConfService serverConfService,
            TokenService tokenService, GlobalConfFacade globalConfFacade, ClientService clientService,
            SignerProxyFacade signerProxyFacade, AuditDataHelper auditDataHelper); InitializationStatusDto getSecurityServerInitializationStatus(); void initialize(String securityServerCode, String ownerMemberClass, String ownerMemberCode,
            String softwareTokenPin, boolean ignoreWarnings); }
InitializationService { public InitializationStatusDto getSecurityServerInitializationStatus() { boolean isAnchorImported = systemService.isAnchorImported(); boolean isServerCodeInitialized = serverConfService.isServerCodeInitialized(); boolean isServerOwnerInitialized = serverConfService.isServerOwnerInitialized(); TokenInitStatusInfo tokenInitStatus = tokenService.getSoftwareTokenInitStatus(); InitializationStatusDto initializationStatusDto = new InitializationStatusDto(); initializationStatusDto.setAnchorImported(isAnchorImported); initializationStatusDto.setServerCodeInitialized(isServerCodeInitialized); initializationStatusDto.setServerOwnerInitialized(isServerOwnerInitialized); initializationStatusDto.setSoftwareTokenInitStatusInfo(tokenInitStatus); return initializationStatusDto; } @Autowired  InitializationService(SystemService systemService, ServerConfService serverConfService,
            TokenService tokenService, GlobalConfFacade globalConfFacade, ClientService clientService,
            SignerProxyFacade signerProxyFacade, AuditDataHelper auditDataHelper); InitializationStatusDto getSecurityServerInitializationStatus(); void initialize(String securityServerCode, String ownerMemberClass, String ownerMemberCode,
            String softwareTokenPin, boolean ignoreWarnings); static final String WARNING_INIT_UNREGISTERED_MEMBER; static final String WARNING_INIT_SERVER_ID_EXISTS; static final String WARNING_SERVERCODE_EXISTS; static final String WARNING_SERVER_OWNER_EXISTS; static final String WARNING_SOFTWARE_TOKEN_INITIALIZED; static final String METADATA_PIN_MIN_LENGTH; static final String METADATA_PIN_MIN_CHAR_CLASSES; static final String ERROR_METADATA_SERVERCODE_NOT_PROVIDED; static final String ERROR_METADATA_MEMBER_CLASS_NOT_PROVIDED; static final String ERROR_METADATA_MEMBER_CODE_NOT_PROVIDED; static final String ERROR_METADATA_PIN_NOT_PROVIDED; static final String ERROR_METADATA_SERVERCODE_EXISTS; static final String ERROR_METADATA_MEMBER_CLASS_EXISTS; static final String ERROR_METADATA_MEMBER_CODE_EXISTS; static final String ERROR_METADATA_PIN_EXISTS; }