Q: Session scope attribute to display error message.
Solution: If an error has occurred, you will have to display the error message by accessing the session scope attribute SPRING_SECURITY_LAST_EXCEPTION, which stores the last exception for the current user.
Q: Logout service is configured by:-
Solution: The logout service provides a handler to handle logout requests. It can be configured via the logout element.
Q: Element which redirects to a specific URL on logout.
Solution: By default, a user will be redirected to the context path root when the logout succeeds, but sometimes, you may wish to direct the user to another URL.
Q: Anonymous login services can be configured by:-
Solution: The anonymous login service can be configured via the anonymous element.
Q: Remember-me support can be configured by:-
Solution: Remember-me support can be configured via the remember-me element.
Q: By default, Remember-me encodes the username, password, remember-me expiration time, and a private key as a token, and stores it as a cache in the user’s browser.
Solution: Remember-me stores as cookie in the user’s browser not as cache.
Q: Spring Security algorithms to secure password.
Solution: Spring Security supports several algorithms for encoding passwords (including MD5 and SHA) and provides built-in password encoders for these algorithms.
Q: Connection of database with Apache derby server requires.
Solution: To connect to a database in the Apache Derby server, you need the Derby client .jars, as well as the Spring JDBC support.
Q: You can specify the statements for querying a user’s information and authorities in the users-by-username-query and authorities-by-username-query attributes.
Solution: Spring Security also supports using custom SQL statements to query a legacy database for user details.
Q: Utility to calculate MD5 digests for your password.
Solution: Jacksum, which you can download from http://sourceforge.net/projects/jacksum/ and extract to a directory of your choice. Then execute the following command to calculate a digest for a text: java -jar jacksum.jar -a md5 -q “txt:secret”
You Have Score    | /10 |