Package org.xwiki.crypto.script
Class StoreScriptService
- java.lang.Object
-
- org.xwiki.crypto.script.StoreScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Named("crypto.store") @Singleton public class StoreScriptService extends Object implements org.xwiki.script.service.ScriptService
Script service allowing a user to create keys pairs and issue certificates.- Since:
- 8.4RC1
- Version:
- $Id: dfe9df69dbda527ebeb22c901ae1de628c247380 $
-
-
Constructor Summary
Constructors Constructor Description StoreScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptingCertificateStore
getX509DocumentCertificateStore(org.xwiki.model.reference.DocumentReference reference)
Returns a X509 certificate store based on a wiki document.ScriptingKeyStore
getX509DocumentKeyStore(org.xwiki.model.reference.DocumentReference reference)
Returns a X509 key store based on a wiki document.ScriptingKeyStore
getX509FileKeyStore(String filename)
Returns a X509 key store based on a folder of files.ScriptingKeyStore
getX509FileSingleKeyStore(String filename)
Returns a X509 key store based on a single file.ScriptingCertificateStore
getX509SpaceCertificateStore(org.xwiki.model.reference.SpaceReference reference)
Returns a X509 certificate store based on a wiki space.ScriptingKeyStore
getX509SpaceKeyStore(org.xwiki.model.reference.SpaceReference reference)
Returns a X509 key store based on a wiki space.
-
-
-
Field Detail
-
ROLEHINT
public static final String ROLEHINT
The role hint of this component.- See Also:
- Constant Field Values
-
-
Method Detail
-
getX509FileKeyStore
public ScriptingKeyStore getX509FileKeyStore(String filename)
Returns a X509 key store based on a folder of files. This store allows storage of multiple keys.- Parameters:
filename
- the name of the folder. If it does not starts with "/", it will be located in the permanent directory.- Returns:
- a multi-key keystore.
-
getX509FileSingleKeyStore
public ScriptingKeyStore getX509FileSingleKeyStore(String filename)
Returns a X509 key store based on a single file. This store allows storage of a single key.- Parameters:
filename
- the name of the file. If it does not starts with "/", it will be located in the permanent directory.- Returns:
- a single key store.
-
getX509SpaceKeyStore
public ScriptingKeyStore getX509SpaceKeyStore(org.xwiki.model.reference.SpaceReference reference)
Returns a X509 key store based on a wiki space. This store allows storage of multiple keys.- Parameters:
reference
- the space reference.- Returns:
- a multi-key store.
-
getX509DocumentKeyStore
public ScriptingKeyStore getX509DocumentKeyStore(org.xwiki.model.reference.DocumentReference reference)
Returns a X509 key store based on a wiki document. This store allows storage of a single key.- Parameters:
reference
- the document reference.- Returns:
- a single key store.
-
getX509SpaceCertificateStore
public ScriptingCertificateStore getX509SpaceCertificateStore(org.xwiki.model.reference.SpaceReference reference)
Returns a X509 certificate store based on a wiki space. This store allows storage of multiple certificates.- Parameters:
reference
- the space reference.- Returns:
- a multi-certificate store.
-
getX509DocumentCertificateStore
public ScriptingCertificateStore getX509DocumentCertificateStore(org.xwiki.model.reference.DocumentReference reference)
Returns a X509 certificate store based on a wiki document. This store allows storage of a single certificate.- Parameters:
reference
- the document reference.- Returns:
- a single key store.
-
-