@Test public void poSecuritySettings_authorizedKvcList() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); List<Byte> authorizedKvcs = new ArrayList<Byte>(); authorizedKvcs.add((byte) 0x12); authorizedKvcs.add((byte) 0x34); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource) .sessionAuthorizedKvcList(authorizedKvcs) .build(); assertThat(poSecuritySettings.isSessionKvcAuthorized((byte) 0x12)).isTrue(); assertThat(poSecuritySettings.isSessionKvcAuthorized((byte) 0x34)).isTrue(); assertThat(poSecuritySettings.isSessionKvcAuthorized((byte) 0x56)).isFalse(); }
boolean isSessionKvcAuthorized(byte kvc) { return authorizedKvcList == null || authorizedKvcList.contains(kvc); }
PoSecuritySettings { boolean isSessionKvcAuthorized(byte kvc) { return authorizedKvcList == null || authorizedKvcList.contains(kvc); } }
PoSecuritySettings { boolean isSessionKvcAuthorized(byte kvc) { return authorizedKvcList == null || authorizedKvcList.contains(kvc); } private  PoSecuritySettings(PoSecuritySettingsBuilder builder); }
PoSecuritySettings { boolean isSessionKvcAuthorized(byte kvc) { return authorizedKvcList == null || authorizedKvcList.contains(kvc); } private  PoSecuritySettings(PoSecuritySettingsBuilder builder); PoTransaction.PinTransmissionMode getPinTransmissionMode(); }
PoSecuritySettings { boolean isSessionKvcAuthorized(byte kvc) { return authorizedKvcList == null || authorizedKvcList.contains(kvc); } private  PoSecuritySettings(PoSecuritySettingsBuilder builder); PoTransaction.PinTransmissionMode getPinTransmissionMode(); static final ModificationMode defaultSessionModificationMode; static final RatificationMode defaultRatificationMode; static final PoTransaction.PinTransmissionMode defaultPinTransmissionMode; }