Package org.xipki.ca.server
Class CertprofileFactoryRegister
- java.lang.Object
-
- org.xipki.ca.server.CertprofileFactoryRegister
-
public class CertprofileFactoryRegister extends Object
Register of CertprofileFactories.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description CertprofileFactoryRegister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCreateProfile(String type)Whether Certprofile of given type can be created.Set<String>getSupportedTypes()Retrieves the types of supported certificate profiles.org.xipki.ca.api.profile.CertprofilenewCertprofile(String type)Create new Certprofile of given type.voidregistFactory(org.xipki.ca.api.profile.CertprofileFactory factory)voidunregistFactory(org.xipki.ca.api.profile.CertprofileFactory factory)
-
-
-
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 benull.- 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 benull.- 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)
-
-