Package org.xipki.license.api
Interface OcspLicense
-
public interface OcspLicenseOCSP License Feature.- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangrant(String caSubject)The CA subject BCStyle 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 BCStyle 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.
-
-