public class WmsBasicAuthorisation extends java.lang.Object implements WmsAuthorisation
Constructor and Description |
---|
WmsBasicAuthorisation() |
Modifier and Type | Method and Description |
---|---|
void |
authorise(WmsRequest theRequest)
Generate a request that will be authorised.
|
void |
checkAuthorisation(WmsRequest theRequest)
Create a new exception
|
void |
initialise(java.lang.String[] arguments)
Pass any arguments to the authorisation class.
|
public void initialise(java.lang.String[] arguments) throws WMSException
initialise
in interface WmsAuthorisation
arguments
- An array of String of length 3. The first String in it is the master key, the second is the first part of the url to get the authorisation from, and the third String is the second part of the url to get the authorisation from. Between the first and the second part the request will be inserted.WMSException
- Is thrown if the arguments are not correct or any other error occured during initialisation.public void checkAuthorisation(WmsRequest theRequest) throws WMSException
checkAuthorisation
in interface WmsAuthorisation
theRequest
- The request which has to be authorisedWMSException
- Is thrown if there is a problem with the request.public void authorise(WmsRequest theRequest)
authorise
in interface WmsAuthorisation
theRequest
- the request that will be cahnged to be authorised by the isAuthorised method of the same class.