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(java.lang.String type)Whether Publisher of given type can be created.java.util.Set<java.lang.String>getSupportedTypes()Retrieves the types of supported publishers.CertPublishernewPublisher(java.lang.String type)Create new publisher of given type.
-
-
-
Method Detail
-
getSupportedTypes
java.util.Set<java.lang.String> getSupportedTypes()
Retrieves the types of supported publishers.- Returns:
- lower-case types of supported publishers, never
null.
-
canCreatePublisher
boolean canCreatePublisher(java.lang.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(java.lang.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.
-
-