Package com.isode.dsapi.config
Class OCSPServiceManager
java.lang.Object
com.isode.dsapi.config.OCSPServiceManager
OCSPServiceManager handles the OCSP service configuration entries.
- Since:
- 16.2
- Author:
- dsm
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for peer DSA manager. -
Method Summary
Modifier and TypeMethodDescriptionCreate a peer configuration entry.voidRemove an OCSP service by service name.get()Get the peer DSAs.Find an OCSP service by CA DN.getByServiceName(String name) Find an OCSP service by service name.voidLoad an OCSP service entry.
-
Field Details
-
logger
protected static final com.isode.util.Logger logger
-
-
Constructor Details
-
OCSPServiceManager
Constructor for peer DSA manager.- Parameters:
ds- Isode directory session, must not be null
-
-
Method Details
-
load
Load an OCSP service entry.- Parameters:
entry- Entry, must not be null- Throws:
ConfigOpFailedException- if mandatory attributes are not loaded
-
create
public OCSPService create(String name, byte[] ber, String p12file, String pphrfile, String description) throws ConfigOpFailedException, ReadFailedException Create a peer configuration entry.- Parameters:
name- Service name, must not be null.ber- CA certificate BER bytes.p12file- P12 private key path, can be nullpphrfile- P12 private key passphrase file path, can only be null if the p12 file is null. It should be a non null value when a p12 file is specifieddescription- Description, may be null.- Returns:
- The created OCSPService object.
- Throws:
ConfigOpFailedException- if there is any other problem in create the OCSP service configuration object or entry.ReadFailedException- if there is a problem on reading the committed entry back.
-
delete
Remove an OCSP service by service name.- Parameters:
dn- DN of configuration entry.- Throws:
ConfigOpFailedException- if the operation failed.
-
get
Get the peer DSAs.- Returns:
- list of peer DSAs, will not be null.
-
getByServiceName
Find an OCSP service by service name.- Parameters:
name- service name, not null- Returns:
- Matching OCSP service or null.
-
getByCADN
Find an OCSP service by CA DN.- Parameters:
dn- the DN of the CA that this service represents, not null- Returns:
- Matching OCSP service or null.
-