🎴 Flashcard Mode

Web Application Security API Programming

Card1 / 20
Mastered0
Review0
QuestionClick to flip

What is the return type of the getCSRFToken() method?

AnswerClick to flip back
A
String
💡 Explanation:

CSRF tokens are typically generated as random strings that are included in forms or requests and validated on the server. String is the standard return type for token generation methods because tokens need to be transportable in HTTP headers, form fields, or URLs. Numeric types would not serve this purpose.

Change Mode