| Home >> All >> org >> apache >> cactus >> client |
| | org.apache.cactus.client.authentication.* (4) |
Package Samples:
org.apache.cactus.client.authentication: Contains all classes needed for writing Cactus tests.
Classes:
AbstractAuthentication: This class was designed with the simple assumption that ALL authentication implementations will have a String Name and a String Password . Two abstract functions validateName and validatePassword provide for concrete implementations to perform character validation. All the work is then done in the configure abstract function. In the BasicAuthentication class, for example, the configuring is done by adding the request property "Authorization" with a value "Basic <base64encode of 'userid:password'>".
FormAuthentication: Form-based authentication implementation. An instance of this class can be reused across several tests as it caches the session cookie. Thus the first time it is used to authenticate the user, it calls the security URL (which is by default the context URL prepended by "j_security_check"), caches the returned session cookie and adds the cookie for the next request. The second time it is called, it simply addes the session cookie for the next request.
Authentication: Interface for different authentication modules. An authentication class is invoked on the client side to perform the actual authentication, for example by modifying the request to includes credentials.
BasicAuthentication: Basic Authentication support.
| Home | Contact Us | Privacy Policy | Terms of Service |