Package org.xipki.ca.api.publisher
Interface CertPublisherFactory
-
public interface CertPublisherFactoryCertPublisher factory interface.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanCreatePublisher(String type)Whether Publisher of given type can be created.Set<String>getSupportedTypes()Retrieves the types of supported publishers.CertPublishernewPublisher(String type)Create new publisher of given type.
-
-
-
Method Detail
-
getSupportedTypes
Set<String> getSupportedTypes()
Retrieves the types of supported publishers.- Returns:
- lower-case types of supported publishers, never
null.
-
canCreatePublisher
boolean canCreatePublisher(String type)
Whether Publisher of given type can be created.- Parameters:
type- Type of the publisher. Must not benull.- Returns:
- whether publisher of this type can be created.
-
newPublisher
CertPublisher newPublisher(String type) throws org.xipki.util.exception.ObjectCreationException
Create new publisher of given type.- Parameters:
type- Type of the publisher. Must not benull.- Returns:
- the new created publisher
- Throws:
org.xipki.util.exception.ObjectCreationException- if publisher could not be created.
-
-