public boolean isExpectedNonce ( @ Nullable final String sNonceToCheck ) { final String sThisNonce = getNonce ( ) ; return StringHelper . hasText ( sThisNonce ) && sThisNonce . equals ( sNonceToCheck ) && CSRFManager . getInstance ( ) . isValidNonce ( sNonceToCheck ) ; }
Check if the passed nonce is the expected one for this session .