@Test public void retrieveMissingPrivateKeyFromSpace() throws Exception { XWikiDocument storeDoc = mock(XWikiDocument.class); when(xwiki.getDocument(new DocumentReference(WIKI, SPACE, ENCODED_SUBJECTKEYID), xcontext)).thenReturn(storeDoc); when(query.<Object[]>execute()).thenReturn(Collections.singletonList(new Object[]{"space." + ENCODED_SUBJECTKEYID, 0})); CertifiedKeyPair keyPair = store.retrieve(SPACE_STORE_REF, certificate); assertThat(keyPair, nullValue()); }
@Override public CertifiedKeyPair retrieve(StoreReference store) throws KeyStoreException { return retrieve(store, (byte[]) null); }
X509KeyWikiStore extends AbstractX509WikiStore implements KeyStore { @Override public CertifiedKeyPair retrieve(StoreReference store) throws KeyStoreException { return retrieve(store, (byte[]) null); } }
X509KeyWikiStore extends AbstractX509WikiStore implements KeyStore { @Override public CertifiedKeyPair retrieve(StoreReference store) throws KeyStoreException { return retrieve(store, (byte[]) null); }  }
X509KeyWikiStore extends AbstractX509WikiStore implements KeyStore { @Override public CertifiedKeyPair retrieve(StoreReference store) throws KeyStoreException { return retrieve(store, (byte[]) null); }  @Override void store(StoreReference store, CertifiedKeyPair keyPair); @Override void store(StoreReference store, CertifiedKeyPair keyPair, byte[] password); @Override CertifiedKeyPair retrieve(StoreReference store); @Override CertifiedKeyPair retrieve(StoreReference store, byte[] password); @Override CertifiedKeyPair retrieve(StoreReference store, CertifiedPublicKey publicKey); @Override CertifiedKeyPair retrieve(StoreReference store, CertifiedPublicKey certificate, byte[] password); }
X509KeyWikiStore extends AbstractX509WikiStore implements KeyStore { @Override public CertifiedKeyPair retrieve(StoreReference store) throws KeyStoreException { return retrieve(store, (byte[]) null); }  @Override void store(StoreReference store, CertifiedKeyPair keyPair); @Override void store(StoreReference store, CertifiedKeyPair keyPair, byte[] password); @Override CertifiedKeyPair retrieve(StoreReference store); @Override CertifiedKeyPair retrieve(StoreReference store, byte[] password); @Override CertifiedKeyPair retrieve(StoreReference store, CertifiedPublicKey publicKey); @Override CertifiedKeyPair retrieve(StoreReference store, CertifiedPublicKey certificate, byte[] password); static final String PRIVATEKEYCLASS_SPACE; static final String PRIVATEKEYCLASS_NAME; static final String PRIVATEKEYCLASS_FULLNAME; static final LocalDocumentReference PRIVATEKEYCLASS; static final String PRIVATEKEYCLASS_PROP_KEY; }