Uses of Interface
org.owasp.esapi.User
-
Packages that use User Package Description org.owasp.esapi The ESAPI interfaces andException
classes model the most important security functions to enterprise web applications.org.owasp.esapi.reference This package contains reference implementations of the ESAPI interfaces. -
-
Uses of User in org.owasp.esapi
Fields in org.owasp.esapi declared as User Modifier and Type Field Description static User
User. ANONYMOUS
The ANONYMOUS user is used to represent an unidentified user.Methods in org.owasp.esapi that return User Modifier and Type Method Description User
Authenticator. createUser(java.lang.String accountName, java.lang.String password1, java.lang.String password2)
Creates a new User with the information provided.User
Authenticator. getCurrentUser()
Returns the currently logged in User.User
Authenticator. getUser(long accountId)
Returns the User matching the provided accountId.User
Authenticator. getUser(java.lang.String accountName)
Returns the User matching the provided accountName.User
Authenticator. login()
Calls login with the *current* request and response.User
Authenticator. login(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
This method should be called for every HTTP request, to login the current user either from the session of HTTP request.Methods in org.owasp.esapi with parameters of type User Modifier and Type Method Description void
Authenticator. changePassword(User user, java.lang.String currentPassword, java.lang.String newPassword, java.lang.String newPassword2)
Changes the password for the specified user.java.lang.String
Authenticator. generateStrongPassword(User user, java.lang.String oldPassword)
Generate strong password that takes into account the user's information and old password.void
Authenticator. setCurrentUser(User user)
Sets the currently logged in User.boolean
Authenticator. verifyPassword(User user, java.lang.String password)
Verify that the supplied password matches the password for this user.void
Authenticator. verifyPasswordStrength(java.lang.String oldPassword, java.lang.String newPassword, User user)
Ensures that the password meets site-specific complexity requirements, like length or number of character sets. -
Uses of User in org.owasp.esapi.reference
Classes in org.owasp.esapi.reference that implement User Modifier and Type Class Description class
DefaultUser
Reference implementation of the User interface.Methods in org.owasp.esapi.reference that return User Modifier and Type Method Description User
FileBasedAuthenticator. createUser(java.lang.String accountName, java.lang.String password1, java.lang.String password2)
Creates a new User with the information provided.User
AbstractAuthenticator. getCurrentUser()
Returns the currently logged in User.User
FileBasedAuthenticator. getUser(long accountId)
Returns the User matching the provided accountId.User
FileBasedAuthenticator. getUser(java.lang.String accountName)
Returns the User matching the provided accountName.protected User
AbstractAuthenticator. getUserFromSession()
Gets the user from session.User
AbstractAuthenticator. login()
Calls login with the *current* request and response.User
AbstractAuthenticator. login(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
This method should be called for every HTTP request, to login the current user either from the session of HTTP request.Methods in org.owasp.esapi.reference with parameters of type User Modifier and Type Method Description void
FileBasedAuthenticator. changePassword(User user, java.lang.String currentPassword, java.lang.String newPassword, java.lang.String newPassword2)
Changes the password for the specified user.java.lang.String
FileBasedAuthenticator. generateStrongPassword(User user, java.lang.String oldPassword)
Generate strong password that takes into account the user's information and old password.void
AbstractAuthenticator. setCurrentUser(User user)
Sets the currently logged in User.boolean
FileBasedAuthenticator. verifyPassword(User user, java.lang.String password)
Verify that the supplied password matches the password for this user.void
FileBasedAuthenticator. verifyPasswordStrength(java.lang.String oldPassword, java.lang.String newPassword, User user)
Ensures that the password meets site-specific complexity requirements, like length or number of character sets.
-