Package org.xipki.license.api
Interface CmLicense
-
public interface CmLicenseCM License Feature.- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetMaxNumberOfCerts()Returns maximal number of certificates.booleangrant(String caSubject)The CA subject in BC style.booleangrantAllCAs()booleanisValid()Whether the license is valid.voidregulateSpeed()Regulate the speed.
-
-
-
Method Detail
-
isValid
boolean isValid()
Whether the license is valid. The criteria may be the validity period, license signature, or any other criteria.- Returns:
- true if the license is valid, false otherwise.
-
grantAllCAs
boolean grantAllCAs()
-
grant
boolean grant(String caSubject)
The CA subject in BC style. Output of org.bouncycastle.asn1.x500.style.BCStyle.INSTANCE.toString(X500Name name)- Parameters:
caSubject- the CA's subject- Returns:
- whether OCSP service for the given CA is allowed.
-
regulateSpeed
void regulateSpeed()
Regulate the speed.
-
getMaxNumberOfCerts
long getMaxNumberOfCerts()
Returns maximal number of certificates.- Returns:
- maximal number of certificates, negative value if unlimited.
-
-