Interface CertPublisherFactory


  • public interface CertPublisherFactory
    CertPublisher factory interface.
    Since:
    2.0.0
    Author:
    Lijun Liao (xipki)
    • 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 be null.
        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 be null.
        Returns:
        the new created publisher
        Throws:
        org.xipki.util.exception.ObjectCreationException - if publisher could not be created.