public class HostNameVerifier extends Object implements ActivationExecutor
Constructor and Description |
---|
HostNameVerifier() |
Modifier and Type | Method and Description |
---|---|
void |
activate(String hostData)
Determines whether the host information of a license matches the actual configuration.
|
protected List<String> |
getHostNames()
Returns the list of host names on which a license shall be verified.
|
public void activate(String hostData) throws ActivationException
The host information of a license might by multiple host names separated by the '|'
characters
in the case of a cluster. Those expected hosts are compared with actual hosts returned by the getHostNames()
method.
License is considered valid if at least one host is present in both lists.
activate
in interface ActivationExecutor
hostData
- the host information of the license.ActivationException
- if hosts do not match.protected List<String> getHostNames() throws ActivationException
ActivationException
- if the hosts cannot be determined.