@Test public void isSavedToConfiguration() throws Exception { KeyInfo info = new TokenTestUtils.KeyInfoBuilder().build(); info.getCerts().clear(); info.getCertRequests().clear(); info.getCertRequests().add(createTestCsr()); assertEquals(true, keyConverter.convert(info).getSavedToConfiguration()); info.getCerts().clear(); info.getCertRequests().clear(); assertEquals(false, keyConverter.convert(info).getSavedToConfiguration()); info.getCerts().clear(); info.getCertRequests().clear(); info.getCerts().add(new CertificateInfoBuilder().savedToConfiguration(false).build()); info.getCerts().add(new CertificateInfoBuilder().savedToConfiguration(false).build()); assertEquals(false, keyConverter.convert(info).getSavedToConfiguration()); info.getCerts().clear(); info.getCertRequests().clear(); info.getCerts().add(new CertificateInfoBuilder().savedToConfiguration(false).build()); info.getCerts().add(new CertificateInfoBuilder().savedToConfiguration(true).build()); assertEquals(true, keyConverter.convert(info).getSavedToConfiguration()); info.getCerts().clear(); info.getCertRequests().clear(); info.getCerts().add(new CertificateInfoBuilder().savedToConfiguration(true).build()); info.getCerts().add(new CertificateInfoBuilder().savedToConfiguration(false).build()); assertEquals(true, keyConverter.convert(info).getSavedToConfiguration()); }
public Key convert(KeyInfo keyInfo) { return convertInternal(keyInfo, null); }
KeyConverter { public Key convert(KeyInfo keyInfo) { return convertInternal(keyInfo, null); } }
KeyConverter { public Key convert(KeyInfo keyInfo) { return convertInternal(keyInfo, null); } @Autowired  KeyConverter(TokenCertificateConverter tokenCertificateConverter,
            TokenCertificateSigningRequestConverter tokenCsrConverter,
            PossibleActionsRuleEngine possibleActionsRuleEngine,
            PossibleActionConverter possibleActionConverter); }
KeyConverter { public Key convert(KeyInfo keyInfo) { return convertInternal(keyInfo, null); } @Autowired  KeyConverter(TokenCertificateConverter tokenCertificateConverter,
            TokenCertificateSigningRequestConverter tokenCsrConverter,
            PossibleActionsRuleEngine possibleActionsRuleEngine,
            PossibleActionConverter possibleActionConverter); Key convert(KeyInfo keyInfo); Key convert(KeyInfo keyInfo, TokenInfo tokenInfo); List<Key> convert(Iterable<KeyInfo> keyInfos); List<Key> convert(Iterable<KeyInfo> keyInfos, TokenInfo tokenInfo); }
KeyConverter { public Key convert(KeyInfo keyInfo) { return convertInternal(keyInfo, null); } @Autowired  KeyConverter(TokenCertificateConverter tokenCertificateConverter,
            TokenCertificateSigningRequestConverter tokenCsrConverter,
            PossibleActionsRuleEngine possibleActionsRuleEngine,
            PossibleActionConverter possibleActionConverter); Key convert(KeyInfo keyInfo); Key convert(KeyInfo keyInfo, TokenInfo tokenInfo); List<Key> convert(Iterable<KeyInfo> keyInfos); List<Key> convert(Iterable<KeyInfo> keyInfos, TokenInfo tokenInfo);  }