Class DeviceRegistrationLicenseStateImpl
java.lang.Object
org.eblocker.server.common.registration.DeviceRegistrationLicenseStateImpl
- All Implemented Interfaces:
DeviceRegistrationLicenseState
public class DeviceRegistrationLicenseStateImpl
extends Object
implements DeviceRegistrationLicenseState
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceRegistrationLicenseStateImpl(CommandRunner commandRunner, String curlCommand, String licenseKey, String licenseCert, String aptUrlDomain, String aptUrlPath, String caCertPath) -
Method Summary
Modifier and TypeMethodDescriptionChecks whether certificate is rejected by the HTTP server in a defensive way, i.e. if the server doesn't reply code 403 explicitly within 3 seconds, RegistrationState.OK is assumed.
-
Constructor Details
-
DeviceRegistrationLicenseStateImpl
-
-
Method Details
-
checkCertificate
Checks whether certificate is rejected by the HTTP server in a defensive way, i.e. if the server doesn't reply code 403 explicitly within 3 seconds, RegistrationState.OK is assumed. That could lead to a valid registration assumption for many reasons, e.g. when no internet connection is available and no exception has been thrown.- Specified by:
checkCertificatein interfaceDeviceRegistrationLicenseState- Returns:
- Returns RegistrationState.INVALID if certificate is rejected due to expiration or revocation.
-