Class WebSecurityPasswordBasedBase
java.lang.Object
org.jboss.as.test.integration.security.WebSecurityPasswordBasedBase
Base class for web security tests that are based on passwords
- Author:
- Anil Saldhana
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidMethod that needs to be overridden with the HTTPClient codevoidTest with user "anil" who has the right password and the right role to access the servletvoidTest with user "marcus" who has the right password but does not have the right role
-
Constructor Details
-
WebSecurityPasswordBasedBase
public WebSecurityPasswordBasedBase()
-
-
Method Details
-
testPasswordBasedSuccessfulAuth
Test with user "anil" who has the right password and the right role to access the servlet- Throws:
Exception
-
testPasswordBasedUnsuccessfulAuth
Test with user "marcus" who has the right password but does not have the right role
Should be a HTTP/403
- Throws:
Exception
-
makeCall
Method that needs to be overridden with the HTTPClient code- Parameters:
user- usernamepass- passwordexpectedCode- http status code- Throws:
Exception
-