Class CertprofileFactoryRegister


  • public class CertprofileFactoryRegister
    extends Object
    Register of CertprofileFactories.
    Since:
    2.0.0
    Author:
    Lijun Liao (xipki)
    • Constructor Detail

      • CertprofileFactoryRegister

        public CertprofileFactoryRegister()
    • Method Detail

      • getSupportedTypes

        public Set<String> getSupportedTypes()
        Retrieves the types of supported certificate profiles.
        Returns:
        types of supported certificate profiles, never null.
      • canCreateProfile

        public boolean canCreateProfile​(String type)
        Whether Certprofile of given type can be created.
        Parameters:
        type - Type of the certificate profile. Must not be null.
        Returns:
        whether certificate profile of this type can be created.
      • newCertprofile

        public org.xipki.ca.api.profile.Certprofile newCertprofile​(String type)
                                                            throws org.xipki.util.exception.ObjectCreationException
        Create new Certprofile of given type.
        Parameters:
        type - Type of the certificate. Must not be null.
        Returns:
        new certificate profile.
        Throws:
        org.xipki.util.exception.ObjectCreationException - If certificate profile could not be created.
      • registFactory

        public void registFactory​(org.xipki.ca.api.profile.CertprofileFactory factory)
      • unregistFactory

        public void unregistFactory​(org.xipki.ca.api.profile.CertprofileFactory factory)