Package org.xipki.ca.api.profile
Class CertprofileFactoryRegister
- java.lang.Object
-
- org.xipki.ca.api.profile.CertprofileFactoryRegister
-
public class CertprofileFactoryRegister extends java.lang.ObjectRegister 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(java.lang.String type)Whether Certprofile of given type can be created.java.util.Set<java.lang.String>getSupportedTypes()Retrieves the types of supported certificate profiles.CertprofilenewCertprofile(java.lang.String type)Create new Certprofile of given type.voidregistFactory(CertprofileFactory factory)voidunregistFactory(CertprofileFactory factory)
-
-
-
Method Detail
-
getSupportedTypes
public java.util.Set<java.lang.String> getSupportedTypes()
Retrieves the types of supported certificate profiles.- Returns:
- types of supported certificate profiles, never
null.
-
canCreateProfile
public boolean canCreateProfile(java.lang.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 Certprofile newCertprofile(java.lang.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(CertprofileFactory factory)
-
unregistFactory
public void unregistFactory(CertprofileFactory factory)
-
-