PoSecuritySettings { KeyReference getDefaultPinCipheringKey() { return defaultPinCipheringKey; } private  PoSecuritySettings(PoSecuritySettingsBuilder builder); PoTransaction.PinTransmissionMode getPinTransmissionMode(); static final ModificationMode defaultSessionModificationMode; static final RatificationMode defaultRatificationMode; static final PoTransaction.PinTransmissionMode defaultPinTransmissionMode; }
@Test public void poSecuritySettings_defaultPinCipheringKey() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource) .pinCipheringKey((byte) 0x11, (byte) 0x22) .build(); KeyReference keyReference = poSecuritySettings.getDefaultPinCipheringKey(); assertThat(keyReference.getKif()).isEqualTo(((byte) 0x11)); assertThat(keyReference.getKvc()).isEqualTo((byte) 0x22); }