Interface LicenseFacility
-
public interface LicenseFacilityLicensing methods available to Resource Adaptor entities.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_PROPERTY_NAMEstatic StringJNDI_NAMEConstant declaring the JNDI name where aLicenseFacilityobject is bound into an SBB’s JNDI environment.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetSchema()Deprecated.Set<Certificate>getSigningCertificates()Returns the list of certificates which fully sign the deployable unit containing this component.booleanisLicensed(String function)Determine if a valid license is available in Rhino for a given license function (with any version).booleanisLicensed(String function, String version)Determine if a valid license is available in Rhino for a given license function/version pair.voiduseOneUnit(String function)Consume one unit of a license function.
-
-
-
Field Detail
-
CONFIG_PROPERTY_NAME
static final String CONFIG_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JNDI_NAME
static final String JNDI_NAME
Constant declaring the JNDI name where a
LicenseFacilityobject is bound into an SBB’s JNDI environment.The value of this constant is "java:comp/env/rhino/facilities/license".
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSchema
@Deprecated String getSchema()
Deprecated.Get the optional licensing schema specified in the license deployment descriptor.
- Returns:
- the licensing schema, or
nullif none has been specified.
-
isLicensed
boolean isLicensed(String function)
Determine if a valid license is available in Rhino for a given license function (with any version).
Note that the given license function does not have to have been specified in the license deployment descriptor - this method can be used to check for the presence of a valid license for any license function.
- Parameters:
function- the license function.- Returns:
trueif a valid license exists in Rhino for the specified license function,falseotherwise.
-
isLicensed
boolean isLicensed(String function, String version)
Determine if a valid license is available in Rhino for a given license function/version pair.
Note that the given license function does not have to have been specified in the license deployment descriptor - this method can be used to check for the presence of a valid license for any license function.
- Parameters:
function- the license function.- Returns:
trueif a valid license exists in Rhino for the specified license function,falseotherwise.
-
useOneUnit
void useOneUnit(String function) throws FunctionNotFoundException
Consume one unit of a license function.
This method can only be used against license functions that have been specified in the license deployment descriptor.
- Parameters:
function- the license function.- Throws:
FunctionNotFoundException- if the specified function has not been specified in the license deployment descriptor.
-
getSigningCertificates
Set<Certificate> getSigningCertificates()
Returns the list of certificates which fully sign the deployable unit containing this component. This can be used to check whether the containing DU has been modified (e.g. to check that the DU is still signed, check that your signing certificate exists in the returned set.
-
-