CertificateByteChooser { public List<CertificateKeyPair> getCertificateKeyPairList() { return Collections.unmodifiableList(keyPairList); } private  CertificateByteChooser(); static synchronized CertificateByteChooser getInstance(); List<CertificateKeyPair> getCertificateKeyPairList(); CertificateKeyPair chooseCertificateKeyPair(Chooser chooser);  }
@Test public void testGetCertificateKeyPairList() { List<CertificateKeyPair> certificateKeyPairList = chooser.getCertificateKeyPairList(); for (CertificateKeyPair pair : certificateKeyPairList) { LOGGER.debug("-------------------------"); LOGGER.debug("Pk type:" + pair.getCertPublicKeyType()); LOGGER.debug("Cert signature type: " + pair.getCertSignatureType()); LOGGER.debug("PublickeyGroup: " + pair.getPublicKeyGroup()); } }