Package org.xwiki.crypto.script
Class ScriptingCertificateStore
- java.lang.Object
-
- org.xwiki.crypto.script.AbstractScriptingStore
-
- org.xwiki.crypto.script.ScriptingCertificateStore
-
public class ScriptingCertificateStore extends AbstractScriptingStore
Wrapper overCertificateStore
for scripting.- Since:
- 8.4RC1
- Version:
- $Id: 8378c6f587c73b3c644a5aa8ee1f1176308a7c75 $
-
-
Field Summary
-
Fields inherited from class org.xwiki.crypto.script.AbstractScriptingStore
storeReference, UTF8
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.xwiki.crypto.pkix.params.CertifiedPublicKey>
getAllCertificates()
Return all the certificates available in a certificate store.org.xwiki.crypto.pkix.CertificateProvider
getCertificateProvider()
Return a certificate provider providing from the given certificate store.void
store(org.xwiki.crypto.pkix.params.CertifiedPublicKey certificate)
Store a certificate into a certificate store.-
Methods inherited from class org.xwiki.crypto.script.AbstractScriptingStore
checkAccess
-
-
-
-
Method Detail
-
store
public void store(org.xwiki.crypto.pkix.params.CertifiedPublicKey certificate) throws CertificateStoreException, AccessDeniedException
Store a certificate into a certificate store.- Parameters:
certificate
- the certificate to store.- Throws:
CertificateStoreException
- on error.AccessDeniedException
- if you do not have edit access rights to the store.
-
getCertificateProvider
public org.xwiki.crypto.pkix.CertificateProvider getCertificateProvider() throws CertificateStoreException, AccessDeniedException
Return a certificate provider providing from the given certificate store.- Returns:
- a certificate provider.
- Throws:
CertificateStoreException
- on error.AccessDeniedException
- if you do not have edit access rights to the store.
-
getAllCertificates
public Collection<org.xwiki.crypto.pkix.params.CertifiedPublicKey> getAllCertificates() throws CertificateStoreException, AccessDeniedException
Return all the certificates available in a certificate store.- Returns:
- a collection of certificates.
- Throws:
CertificateStoreException
- on error.AccessDeniedException
- if you do not have edit access rights to the store.
-
-