Package org.xipki.ca.server
Class CertPublisherFactoryRegister
- java.lang.Object
-
- org.xipki.ca.server.CertPublisherFactoryRegister
-
public class CertPublisherFactoryRegister extends Object
Register of CertPublisherFacotries.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description CertPublisherFactoryRegister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindService(org.xipki.ca.api.publisher.CertPublisherFactory service)booleancanCreatePublisher(String type)Whether publisher of given type can be created.Set<String>getSupportedTypes()Retrieves the types of supported publishers.org.xipki.ca.api.publisher.CertPublishernewPublisher(String type)Create new publisher of given type.voidregistFactory(org.xipki.ca.api.publisher.CertPublisherFactory factory)voidunbindService(org.xipki.ca.api.publisher.CertPublisherFactory service)voidunregistFactory(org.xipki.ca.api.publisher.CertPublisherFactory factory)
-
-
-
Method Detail
-
canCreatePublisher
public 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
public org.xipki.ca.api.publisher.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:
- new publisher.
- Throws:
org.xipki.util.exception.ObjectCreationException- if publisher could not be created.
-
getSupportedTypes
public Set<String> getSupportedTypes()
Retrieves the types of supported publishers.- Returns:
- lower-case types of supported publishers, never
null.
-
bindService
public void bindService(org.xipki.ca.api.publisher.CertPublisherFactory service)
-
registFactory
public void registFactory(org.xipki.ca.api.publisher.CertPublisherFactory factory)
-
unbindService
public void unbindService(org.xipki.ca.api.publisher.CertPublisherFactory service)
-
unregistFactory
public void unregistFactory(org.xipki.ca.api.publisher.CertPublisherFactory factory)
-
-