Which of the following security related elements of the deployment descriptor matches the argument to the isCallerInRole() method?
Which of the following fields is required when a user is authenticated using FORM authentication?
Identify whether the given statement is true or false.
"An object becomes eligible for garbage collection when it becomes unreachable by any code."
You work as a Software Developer for NewTech Inc. You write a bean class using Enterprise JavaBeans 3.0. The class uses the @DeclareRoles ("ADMIN, HR, DBA, USER") annotation to declare the security roles. The class contains a method named showResult(). You want to ensure that the ADMIN role is granted privilege to the showResult() method. Moreover, if a role that is not allowed to access the method tries to call the method, an error message must be shown. Assuming that there is no security-related element in the deployment descriptor, which of the following will you use to accomplish the task?
Each correct answer represents a part of the solution. Choose two.
Which of the following methods retrieves a single character from a string?
Which of the following methods throws a SecurityException if the calling thread is not allowed to open a socket connection to the specified host and port number?
Identify whether the given statement is true or false.
"If the isUserInRole() method is called on an unauthenticated user, the container returns false."
Which of the following classes enables a programmer to create an object and protect its confidentiality with a cryptographic algorithm?
Mark works as a Programmer for InfoTech Inc. He develops an application named JavaServices. He wants to declare a security constraint that will restrict everything in the com/files directory so that security role of Admin can invoke any http methods on the resources. Which of the following element declarations will be used to accomplish the task?
Which of the following statements about the <web-resource-collection> element are true?
Each correct answer represents a complete solution. Choose all that apply.
PDF + Testing Engine
|
---|
$66 |
Testing Engine
|
---|
$50 |
PDF (Q&A)
|
---|
$42 |
GIAC Free Exams |
---|
![]() |